Last active
August 29, 2015 14:04
-
-
Save elbruno/d846949ea4345bacd1ff to your computer and use it in GitHub Desktop.
ElBruno - SignalR Html Client OnConnected On Hub II
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
<script type="text/javascript"> | |
var hub; | |
$(window).ready(function () { | |
console.log("windows ready para SignalR"); | |
hub = $.connection.SampleHub; | |
$.connection.hub.start().done( | |
function () { | |
var area = 'default'; | |
console.log("hub started, area:" + area); | |
hub.server.JoinToArea(area); | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment