Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 80a898397d
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (14 sloc) 0.369 kB
$(document).ready () ->
window.ws = new WebSocket "ws://mcode.the.tl:9999/"
ws.onopen = () ->
console.log "open"
ws.send "hahaha"
ws.onmessage = (e) ->
console.log e.data
ws.onclose = (e) ->
console.log "closed!!"
ws.onerror = (e) ->
console.log "error"
#socket = new io.Socket("ws://mcode.the.tl:8008/")
#socket.connect()
#socket.send "test"
Jump to Line
Something went wrong with that request. Please try again.