Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gschier/ws-demo
https://github.com/gschier/ws-demo
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/gschier/ws-demo
- Owner: gschier
- Created: 2021-12-15T22:41:27.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-12-15T23:35:17.000Z (about 3 years ago)
- Last Synced: 2024-11-09T20:32:45.085Z (about 1 month ago)
- Language: JavaScript
- Size: 171 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ws-demo
- start demo with `npm start`
- navigate to http://localhost:8111 in your browser
- client subscribes to gql endpoint
- server subscribe doesn't yield anything
- client unsubscribes after 5 seconds
- server subscription generated never exists (check console for tick logs)If you uncomment `// yield { greetings: "hi "+(count++) };` in `schema.js` and
restart, the server will correctly stop ticking after 5 seconds.