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
userTypeValidator
Next
TLSyncErrorCloseEventReason
hi

We use cookies on this website.
Learn more in our Cookie Policy.