Version Downloads License Chat

Providers are the Y.js way to set up communication between different users, or cache the updates in the browser. Hocuspocus comes with an own provider, which is compatible with all existing providers, but has some nice features on top.

It’s coming with WebSocket message authentication, a debug mode to add verbose output to the console, a few more event hooks, a different reconnection strategy, an improved error handling and a friendly API for the Awareness protocol.

All Y.js providers can be used together. That includes the Hocuspocus provider, and the original y-websocket provider, y-webrtc, y-indexeddb (for in-browser caching) or y-dat (work in progress). You can use the Hocuspocus server with y-websocket, the Hocuspocus provider with the y-websocket server, the Hocuspocus provider with y-webrtc … whatever you like.