WS API CLIENT
Standard websocket client for openservice-ws.
Install
yarn add git@github.com:daywiss/ws-api-client.git
Usage
Install for your frontend project.
//websockets must be supported in browser const config = host:'wss://yourwebsockethosturl' //your action/state channels, this is dependent on your server implementation channels: //common example channels 'public' 'private' 'auth' const initState = //some initial state { //do something with the new state channelchannelState}