Created
December 10, 2011 00:53
-
-
Save Raynos/1454082 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var chatServer = { | |
| /** | |
| * Invoke function. callback will be invoked with (err, list). error is any server error and list is JSON format | |
| * of some yet to be defined type that basically covers all your contact list rendering need | |
| **/ | |
| getContacts: function (callback) { /* code you don't care about */ }, | |
| /** | |
| * Callback will be invoked with (err, call) | |
| * | |
| **/ | |
| voiceCall: function (userId, callback) { /* code you don't care about */ } | |
| } | |
| chatServer.on("incomingCall", function (call) { /* your code */ }); | |
| var Call = { | |
| acceptCall: function () { /* my code */ }, | |
| endCall: function () { /* my code */ } | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment