Skip to content

Instantly share code, notes, and snippets.

@msarchet
Created January 27, 2013 19:26
Show Gist options
  • Save msarchet/4649919 to your computer and use it in GitHub Desktop.
Save msarchet/4649919 to your computer and use it in GitHub Desktop.
Example For Dfowler
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