minor doc fix

This commit is contained in:
HawkOwl 2015-07-13 13:13:05 +08:00
parent 6abdeb4b48
commit da7cb9eb0a

View File

@ -175,7 +175,9 @@ to test your new code::
socket.onmessage = function(e) {
alert(e.data);
}
socket.send("hello world");
socket.onopen = function() {
socket.send("hello world");
}
You should see an alert come back immediately saying "hello world" - your
message has round-tripped through the server and come back to trigger the alert.