Skip to content

Commit b134247

Browse files
committed
Fix code formatting.
1 parent 6e3cfff commit b134247

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ rcon.connect().then(() => {
5959

6060
#### Specify command timeout
6161

62+
``` javascript
6263
rcon.command('cvarlist', 1000).then(console.log, console.error);
64+
```
6365

6466
## Errors
6567

@@ -72,6 +74,7 @@ rcon.command('cvarlist').then(() => {}).catch(err => {
7274
console.log(`Got partial response: ${err.details.partialResponse}`);
7375
}
7476
});
77+
```
7578

7679
When an error is returned, even if an error doesn't contain a partial output, there is no guarantee the command was not run. The protocol uses udp and the packets sometimes get lost. The only guarantee is when the error does contain a partial output, the command was definitely run, but some reply packets got lost.
7780

0 commit comments

Comments
 (0)