Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (11 sloc) 277 Bytes
$(document).ready () ->
window.ws = new WebSocket "ws://b.the.tl:9998/"
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"
Jump to Line
Something went wrong with that request. Please try again.