Interface ISocket

Socket接口

Hierarchy

  • ISocket

Implemented by

Properties

onClosed: null | SocketFunc
onConnected: null | SocketFunc
onError: null | SocketFunc
onMessage: null | MessageFunc

Methods

  • Parameters

    • Optional code: number
    • Optional reason: string

    Returns void

  • Parameters

    • options: any

    Returns any

  • Parameters

    Returns number

Generated using TypeDoc