Builds the serve-time handler object that routes every Bun socket event to the sink stored on that socket's data.
data
One handler object serves every connection, which is exactly Bun's model — per-connection state lives on ws.data, not in the handlers.
ws.data
The handler object to pass as Bun.serve's websocket option
Bun.serve
websocket
0.2.0
Builds the serve-time handler object that routes every Bun socket event to the sink stored on that socket's
data.One handler object serves every connection, which is exactly Bun's model — per-connection state lives on
ws.data, not in the handlers.