disconnect

Disconnects the socket.

Parameters

  • codeoptionalundefined | number

    A numeric status code to send on disconnect.

  • reasonoptionalundefined | string

    A custom reason for the disconnect.

Examples

Connect

realtime.disconnect()