We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c27b85d commit 0434d0cCopy full SHA for 0434d0c
README.md
@@ -107,9 +107,9 @@ Once you have the websocket endpoint you need you can:
107
```javascript
108
var socket = io(endpoint);
109
socket.on('connect', function () {
110
- socket.emit('message', yourCommand);
+ socket.emit('command', yourCommand);
111
112
- socket.on('message', function () {
+ socket.on('command', function () {
113
// Your code to handle messages
114
})
115
}
0 commit comments