OpenJunction/JSJunction
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A quickstart example for using JSJunction: <html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <script language='javascript' type='text/javascript' src='http://openjunction.github.com/JSJunction/json2.js'></script> <script language='javascript' type='text/javascript' src='http://openjunction.github.com/JSJunction/strophejs/1.0.1/strophe.js'></script> <script language='javascript' type='text/javascript' src='http://openjunction.github.com/JSJunction/junction/0.7.0/junction.js'></script> <script type="text/javascript"> var activity = {ad:"my.test.app"}; var actor = { onMessageReceived: function(msg) { alert("got a message: " + msg.text); } , onActivityJoin: function() { alert("joined!"); this.sendMessageToSession({text: "first post!"}); } }; JX.getInstance("prpl.stanford.edu").newJunction(activity,actor); </script> </head> <body> </body> </html>
About
The JS implemenation of the Junction library.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published