openWebsocket
openWebsocket
is a built-in action which opens a new websocket connection, for example:
import { openWebsocket } from '@redux-requests/core';
dispatch(openWebsocket());
// optionally you can pass an object which will be passed to subscripber.onOpen callback,// useful for things like authenticationdispatch(openWebsocket({ token: 'token' }));