File SystemWebSocketBuild a publish-subscribe WebSocket serverBun's server-side WebSocket API includes native pub-sub. Subscribe a socket to a set of named channels with socket.subscribe(<name>) ; publish a message to aCopy MarkdownOpenBuild a simple WebSocket serverStart a WebSocket server with Bun.serve .Set per-socket contextual data on a WebSocketA WebSocket server typically needs to store some identifying information or context for each connected client.