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