Module: lib/ws-bbs-server
WebSocket BBS server attachment
Summary
Attach WebSocket endpoint to HTTP server and run BBS sessions over WS
Table of contents
Functions
Functions
attachWebSocketServer
▸ attachWebSocketServer(httpServer, telnetServer): void
Attach a WebSocket server to the existing HTTP server. When a client connects to path /ws, a BBS session is created via the TelnetServer. Call after TelnetServer.start() so snack:push and server info are already registered.
Parameters
| Name | Type |
|---|---|
httpServer |
Server<typeof IncomingMessage, typeof ServerResponse> |
telnetServer |
TelnetServer |
Returns
void