Utilities for recording network disconnects
ts-node src/index.ts <client|server> [*|host]:[port]
On client, you must set the host as the servers host to connect to. On server, you can use '*' to listen on any interface.
Name | Type | Info |
---|---|---|
LINKWATCH_PSK | String | Pre-shared key. |
LINKWATCH_HOST | String | Host to listen/connect. |
LINKWATCH_PORT | Number | Post to listen/conenct. |
Minimum length 12 characters. This is a secret the client and server share for authenticating. Very simple measure to prevent random TCP connections from network scanning, etc.
Server: The address to listen on.
Default: 0.0.0.0
Client: The address to connect to.
Server: The port to listen to.
Default: 8080
Client: The port to connect to.