Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tynes/redux-ws-server
dispatch redux actions via http server
https://github.com/tynes/redux-ws-server
curl http nodejs redux websockets
Last synced: 26 days ago
JSON representation
dispatch redux actions via http server
- Host: GitHub
- URL: https://github.com/tynes/redux-ws-server
- Owner: tynes
- License: mit
- Created: 2018-08-02T00:58:22.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-03T22:59:12.000Z (over 6 years ago)
- Last Synced: 2024-09-21T19:50:50.433Z (about 2 months ago)
- Topics: curl, http, nodejs, redux, websockets
- Language: JavaScript
- Homepage:
- Size: 43 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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 status
- `POST /` - the post body is interpreted as the actionActions generally have the shape of:
```bash
{
"type": "BAZ",
"payload": { "foo": "bar" }
}
```### Configuration
Configure the server with runtime environment
variables.```bash
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=debug
```### TODO
- serve via https