https://github.com/ziwot/knowthen-rtsupport
Real-time support app from Knowthen course
https://github.com/ziwot/knowthen-rtsupport
Last synced: 7 months ago
JSON representation
Real-time support app from Knowthen course
- Host: GitHub
- URL: https://github.com/ziwot/knowthen-rtsupport
- Owner: ziwot
- Created: 2019-03-31T19:27:07.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-15T20:25:53.000Z (about 7 years ago)
- Last Synced: 2025-01-01T12:47:37.004Z (over 1 year ago)
- Language: JavaScript
- Size: 117 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
test websocket:
```
let msg = {
name: 'channel add',
data: {
name: 'Hardware Support'
}
};
let ws = new WebSocket('ws://localhost:4000');
ws.onopen = () => {
ws.send(JSON.stringify(msg))
}
ws.onmessage = (e) => {
console.log(JSON.parse(e.data))
}
```