0.0.3 • Published 7 years ago
@tynes/redux-ws-server v0.0.3
Redux Websocket Server
Usage
Proxy requests from an HTTP webserver via websockets to redux middleware and dispatch the action.
Very light on dependencies, no express,
no socket.io.
The webserver is currently password protected via basic authentication.
API
GET /- get the server statusPOST /- the post body is interpreted as the action
Actions generally have the shape of:
{
"type": "BAZ",
"payload": { "foo": "bar" }
}Configuration
Configure the server with runtime environment variables.
REDUX_WS_SERVER_PORT=8084
REDUX_WS_SERVER_USE_BASIC_AUTH=true
REDUX_WS_SERVER_BASIC_AUTH_USER=default
REDUX_WS_SERVER_BASIC_AUTH_PASSWORD=default
REDUX_WS_SERVER_LOG_LEVEL=debugTODO
- serve via https