disconnect
Disconnects the socket.
Parameters
codeoptional
undefined
|number
A numeric status code to send on disconnect.
reasonoptional
undefined
|string
A custom reason for the disconnect.
Examples
Connect
- JavaScript
- Python
realtime.disconnect()
Disconnects the socket.
undefined
| number
A numeric status code to send on disconnect.
undefined
| string
A custom reason for the disconnect.