Interface WebSocketBackend

Hierarchy

  • WebSocketBackend

Properties

Properties

close: ((code?, reason?) => void)

Type declaration

    • (code?, reason?): void
    • Parameters

      • Optional code: number
      • Optional reason: string | Buffer

      Returns void

on: (<T>(event, listener) => WebSocketBackend)

Type declaration

    • <T>(event, listener): WebSocketBackend
    • Type Parameters

      • T extends keyof WebSocketBackendEvents

      Parameters

      • event: T
      • listener: WebSocketBackendEvents[T]

      Returns WebSocketBackend

ping: ((data?, mask?, cb?) => void)

Type declaration

    • (data?, mask?, cb?): void
    • Parameters

      • Optional data: any
      • Optional mask: boolean
      • Optional cb: ((err) => void)
          • (err): void
          • Parameters

            • err: Error

            Returns void

      Returns void

send: ((data, cb?) => void)

Type declaration

    • (data, cb?): void
    • Parameters

      • data: any
      • Optional cb: ((err?) => void)
          • (err?): void
          • Parameters

            • Optional err: Error

            Returns void

      Returns void

Generated using TypeDoc