Repository navigation
4.18.1
The library's code is the same as in 4.18.0. This release brings the new README and package description to npm.
Documentation
- The README and the package description present react-websocket as a real-time toolkit: install and a quick start
come first, then the features and the API, grouped into the core and six opt-in groups. The bundle size is now given
as about 4 kB, which is what{ useWebSocket }measures. - Real-world guides that build whole apps, client and server: an AI chatbot, an AI image and video generator, a voice
assistant, a multiplayer party game, a real-time action game, a team chat, a collaborative whiteboard, a trading
dashboard, live notifications and delivery tracking. See
Real-world guides. - Numbered feeds: the example server sends the whole state when a client's
afteris ahead of its own number, as it
is after the server restarts. - Tabs share a connection only when they connect to the same URL, so a token in the URL that differs between tabs
opens a connection per tab. Send it in a first message instead.