An interface used by Nakama's web socket to determine the payload protocol.

Hierarchy

  • WebSocketAdapter

Implemented by

Properties

onClose: null | SocketCloseHandler

Dispatched when the web socket closes.

onError: null | SocketErrorHandler

Dispatched when the web socket receives an error.

onMessage: null | SocketMessageHandler

Dispatched when the web socket receives a normal message.

onOpen: null | SocketOpenHandler

Dispatched when the web socket opens.

Methods

  • Parameters

    • scheme: string
    • host: string
    • port: string
    • createStatus: boolean
    • token: string

    Returns void

Generated using TypeDoc