 
             apply_helpers ctx
 
-            h.apply ctx
+            action.apply ctx
 
     $(-> app.run '#/') if app?
 

        helpers[k] = v

    context.on = (obj) ->
      for k, v of obj
        ws_handlers[k] = v

    context.connect = ->
      context.socket = io.connect.apply io, arguments

    context = {}

    # Storage for the functions provided by the user.
    ws_handlers = []
    helpers = {}

    apply_helpers = (ctx) ->
