Created
January 27, 2013 19:26
-
-
Save msarchet/4649919 to your computer and use it in GitHub Desktop.
Example For Dfowler
This file contains 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 TinyChat = TinyChat || {}; | |
TinyChat.ConnectionID = ''; | |
TinyChat.Connection = null; | |
TinyChat.Proxy = null; | |
TinyChat.StartChat = function () { | |
TinyChat.Connection = $.hubConnection(); | |
TinyChat.Connection.logging = true; | |
TinyChat.Connection.start().done(function() { | |
TinyChat.Proxy = TinyChat.Connection.createHubProxy('chatHub'); | |
TinyChat.Proxy.on('notify', function(msg) { console.log(msg); }); | |
});; | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment