What websocket library is the default in durable workers?

Hi!

what websocket library is the default in durable workers? I know WS is widely used, but uwebsockets,js is meant to be excellent. Can we import external websocket libraries inside durable workers?

Hi @rich.s.wright,

Cloudflare Workers is using a custom implementation of WebSockets similar to what you have in a web-browser. You can read more about it in the WebSockets documentation and Using WebSockets.

Any WebSocket library written for Node.js is unlikely to run on Workers as they use Node.js specific APIs, such as Sockets, which are not available in the Workers Runtime.

1 Like