         
 
 # WebSocket disconnect eventhandler
-onDisconnect = (frame) ->
+onDisconnect = () ->
     $('#wsstatus').removeClass 'label-info'
     $('#wsstatus').addClass 'label-danger'
     $('#wsstatus').html 'OffLine'

    
    
# WebSocket connect eventhandler
onConnect = (frame) ->
    subscribeAll()

    $('#wsstatus').removeClass 'label-danger'

    client = Stomp.over socket

    # WebSocket Connected
    client.connect {}, () ->
        stompClient = client
        stompClient.debug = null
        onConnect()
    , () ->
        onDisconnect()

    
# initialize display
