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