Sign in
go
/
website
/
1f6ba5cfa85f6083784abf0463d41f9f1564c630
/
.
/
_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"
)