File SystemWebSocket
Set per-socket contextual data on a WebSocket
A WebSocket server typically needs to store some identifying information or context for each connected client.
Build a publish-subscribe WebSocket server
Bun'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 a
Enable compression for WebSocket messages
Set the perMessageDeflate parameter to compress all messages with the permessage-deflate WebSocket extension.