Sha256: 732300600f9129ab5efbc0c10e29570fea139a9a8770a30848d511bc2eac9f61

Contents?: true

Size: 222 Bytes

Versions: 3

Compression:

Stored size: 222 Bytes

Contents

class App.Socket
  
  @setup: ->
    @socket = new WebSocket(App.Config.webSocket)
          
    @socket.onmessage = (message) =>
      data = JSON.parse(message.data)
      type = data.type
      Spine.trigger type, data

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
scales-monitor-0.0.4 lib/scales-monitor/app/app/assets/javascripts/app/models/socket.js.coffee
scales-monitor-0.0.1.beta.2 lib/scales-monitor/app/app/assets/javascripts/app/models/socket.js.coffee
scales-monitor-0.0.1.beta.1 lib/scales-monitor/app/app/assets/javascripts/app/models/socket.js.coffee