Sha256: 3dd313aa1cd767910710863c0928bcd718cae4c2e569fd57e6e9ddf0c43e8f8b

Contents?: true

Size: 273 Bytes

Versions: 8

Compression:

Stored size: 273 Bytes

Contents

$ ->
  ws = new WebSocket("ws://#{window.location.hostname}:8081#{window.location.pathname}")

  ws.onmessage = (evt) ->
    $('#markdown').html(evt.data)

  ws.onclose = ->
    console.log('Connection closed.')

  ws.onopen = ->
    console.log('Connection established!')

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mado-0.2.1 app/views/application.coffee
mado-0.2.0 app/views/application.coffee
mado-0.1.1 app/views/application.coffee
mado-0.1.0 app/views/application.coffee
mado-0.0.4 app/views/application.coffee
mado-0.0.3 app/views/application.coffee
mado-0.0.2 app/views/application.coffee
mado-0.0.1 app/views/application.coffee