createTabsWebSocket
A WebSocket class that shares one connection between all the tabs of an app. Pass it as the WebSocket option.
Available only from react-websocket/tabs. It has no React dependency and no imports, and its size (about 1.7 kB min+gzip) is separate from the main entry's. The guide is One connection across tabs.
Usage
Parameters
Returns
A TabsWebSocket: a class with the WebSocket interface, to pass as the WebSocket option, plus: