 
   on: (name, fn) =>
     unless window?
-      throw new Error 'z.server.on() called from node'
+      throw new Error 'z.server.on() called server-side'
 
     (@events[name] = @events[name] or []).push(fn)
 

    (req, res, next) =>
      # Reset state between requests
      @setStatus 200
      cookies._reset()
      StateFactory.reset()



  off: (name, fn) =>
    unless window?
      throw new Error 'z.server.off() called server-side'

    @events[name] = _.without(@events[name], fn)

