mirror of
https://github.com/django/daphne.git
synced 2025-07-14 18:02:17 +03:00
minor doc fix
This commit is contained in:
parent
6abdeb4b48
commit
da7cb9eb0a
|
@ -175,7 +175,9 @@ to test your new code::
|
||||||
socket.onmessage = function(e) {
|
socket.onmessage = function(e) {
|
||||||
alert(e.data);
|
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
|
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.
|
message has round-tripped through the server and come back to trigger the alert.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user