@jambonz/sdk
    Preparing search index...

    Function createEndpoint

    • Create a jambonz WebSocket endpoint on an HTTP server.

      Returns a MakeService factory for registering path-based control and audio WebSocket handlers. Supports both the jambonz control protocol (ws.jambonz.org) and the audio streaming protocol (audio.drachtio.org).

      Parameters

      Returns MakeService

      const server = http.createServer();
      const makeService = createEndpoint({ server, port: 3000 });

      const svc = makeService({ path: '/' });
      const audioSvc = makeService.audio({ path: '/audio' });