Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gschier/ws-demo


https://github.com/gschier/ws-demo

Last synced: 2 days ago
JSON representation

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.