TLSyncErrorCloseEventCode

See source code

This the close code that we use on the server to signal to a socket that the connection is being closed because of a non-recoverable error.

You should use this if you need to close a connection.

TLSyncErrorCloseEventCode: 4099

Example

socket.close(TLSyncErrorCloseEventCode, TLSyncErrorCloseEventReason.NOT_FOUND)

The reason parameter that you pass to socket.close() will be made available at useSync().error.reason

Prev
tltime
Next
TLSyncErrorCloseEventReason