Sign in
go
/
website
/
f8747b4bbb33b7a95767d7d7f07008ca9fc88787
/
.
/
_content
/
talks
/
2012
/
insidepresent
/
websocket.js
blob: f9809d60983f7235f81f8d8effbac148aae9dc92 [
file
] [
log
] [
blame
]
var
sock
=
new
WebSocket
(
"ws://localhost:4000/"
);
sock
.
onmessage
=
function
(
m
)
{
console
.
log
(
"Received:"
,
m
.
data
);
}
sock
.
send
(
"Hello!\n"
)