Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 437 Bytes

server.litcoffee

File metadata and controls

14 lines (10 loc) · 437 Bytes

This allows us to invoke a method on the server without running the stub on the client. (We've already run the stub using the offline algorithm).

  Meteor.methods
    '/awwx/offline-data/apply': (methodId, name, params) ->
      return Meteor.apply name, params

For convenience on the server, Offline.methods etc. delegate to their Meteor counterpart.

  Offline.methods = (methods) ->
    Meteor.methods methods