Skip to content

Commit 0434d0c

Browse files
committedFeb 1, 2018
Fix typos in README
Close #175 Signed-off-by: Hanno Braun <[email protected]>
1 parent c27b85d commit 0434d0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ Once you have the websocket endpoint you need you can:
107107
```javascript
108108
var socket = io(endpoint);
109109
socket.on('connect', function () {
110-
socket.emit('message', yourCommand);
110+
socket.emit('command', yourCommand);
111111

112-
socket.on('message', function () {
112+
socket.on('command', function () {
113113
// Your code to handle messages
114114
})
115115
}

0 commit comments

Comments
 (0)
Please sign in to comment.