CloudServices/FirefoxMobileServices/ChannelService: Difference between revisions

Line 66: Line 66:


API Calls:
API Calls:
* Send(payload, service) - Send the payload over the channel. It will end up in the server-side service handling it. (ie. if push.jsm wanted to send a call to the Push service, it would call Send('whatever', 'push')  )
* Send(payload, serviceName) - Send the payload over the channel. It will end up in the server-side service handling it. (ie. if push.jsm wanted to send a call to the Push service, it would call Send('whatever', 'push')  )
 
The channel code will initially connect and call 'register' to get a deviceID/key assigned to it. It will need to save both the deviceID/key. On reconnects the client will call 'authorize' with the deviceID/key before it will be considered a valid client. The key acts as a password and is not shared.


===Cloud Services Channel Service===
===Cloud Services Channel Service===
Confirmed users
192

edits