Skip to content

Commit 69d61c6

Browse files
committed
Changes stuff on the README.md
1 parent 89d7e7d commit 69d61c6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ tcpClient.emit(data);
4242
* lookup
4343

4444
### Compatible with normal TCP
45+
A Limitless-TCP Client is compatible with a normal TCP server, meaning that you are able to connect to a generic tcp server while using
46+
Limitless-TCP's simple syntax. This however does remove the 'heartbeat', 'compression', and 'anti packet stacking'.
4547
#### Server:
4648
```javascript
4749
let net = require('net');
@@ -74,9 +76,7 @@ tcpClient.on('connect', () => {
7476
tcpClient.emit('Yo 2');
7577
});
7678
```
77-
78-
Because the server isn't an instance of Limitless-TCP, the client will not use heartbeats, compression, or packet splitting. It will work as a normal tcp client.
79-
This however does not work the other way, a normal tcp client will not be compatible with a Limitless-TCP server
79+
This will not work the other way around, meaning you are not able to connect a normal tcp client to a Limitless TCP server.
8080

8181
## Server:
8282
```javascript
@@ -85,7 +85,7 @@ let { TCPServer } = require('TCPService');
8585
let tcpServer = new TCPServer(num: port, bool: useHeartbeat)
8686
tcpServer.listen();
8787

88-
tcpServer.on(str: event, null/socket: socket, (callback) => {}); //If null then it listens for tcpServer events instead of socket specific
88+
tcpServer.on(str: event, null/socket: socket, (callback) => {}); //If the socket field is null then it listens for tcpServer events instead of socket specific
8989
tcpServer.emit(data, socket: socket);
9090
```
9191

0 commit comments

Comments
 (0)