Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/intellltech/server-push-hooks
https://github.com/intellltech/server-push-hooks
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/intellltech/server-push-hooks
- Owner: intellltech
- License: mit
- Created: 2024-12-24T00:47:08.000Z (28 days ago)
- Default Branch: dependabot/npm_and_yarn/async-3.2.4
- Last Pushed: 2024-12-24T00:56:08.000Z (28 days ago)
- Last Synced: 2024-12-24T01:35:56.399Z (28 days ago)
- Language: JavaScript
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/mfrachet/use-socketio.svg?branch=master)](https://travis-ci.org/mfrachet/use-socketio)
React hooks for handling server-push technologies:
- [use-socketio](./packages/use-socketio) for [Socket.io](https://socket.io/)
- [use-server-sent-events](./packages/use-server-sent-events) for [Server Sent Events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events)
- [use-websockets](./packages/use-websockets) for [Websocket](https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API)## Running samples
To run samples locally, you can:
```sh
$ git clone https://github.com/mfrachet/server-push-hooks
$ cd server-push-hooks
$ npm install # install lerna and dependencies at the root
$ npm run bootstrap # install lerna packages dependencies
$ npm run build # build the lerna packages
$ npm start # start the web application
$ npm start:test-server # start the backend services in another terminal
$ npm run e2e # run E2E tests of the projects in another terminal
```