Stone.js API
    Preparing search index...
    • Class decorator: enable the Node.js WebSocket adapter for a Stone.js application.

      Registers the node_ws adapter. Combine with @Realtime() (from @stone-js/realtime) to wire gateways, channels and presence: this adapter populates the realtime connection store and dispatches connection lifecycle events into the realtime router.

      Type Parameters

      • T extends ClassType = ClassType

      Parameters

      Returns ClassDecorator

      A class decorator.

      import { NodeWs } from '@stone-js/node-ws-adapter'
      import { Realtime } from '@stone-js/realtime'

      @NodeWs({ url: 'ws://localhost:8080' })
      @Realtime({ driver: 'memory' })
      @StoneApp({ name: 'app' })
      export class Application {}