I'm using SignalR to transferring commands from client to server without refreshing the page. When the client enter some of my web pages, I'm starting a new hub connection. Like this:  var hub = $.connection.siteControllerHub; $.connection.hu...
I have a signalr hubclass in a classlibrary   and when i use that hubclass in my webapplication referencing that class library with below javascript code, it does not work,   $(function () {      var chat = $.connection.notificationHub;      chat.cli...
NOTE: Someone else originally asked this question but deleted it before I could post my answer. Since this question covers many issues that developers face when trying to make SignalR work cross-domain, I decided to replicate it. Plus, I had already...
Let's say i have two or more hubs in my server application. My javascipt client (Angular SPA) initialy needs a connection to the first hub, and needs to subscribe to a method like this:  connection = $.hubConnection(appSettings.serverPath); first...
Following is the code for the first model I created, which works fine:  registerModel=new registerModel(); registerModel.contact=[] registerModel.contact.push(/* add 5 contacts */) socket.invoke("create", registerModel);   However, the follow...
how to read a list sent using sockets in from the end-user's side ?  I've tried this  var lstA = $('<div />').text(listASServer).html(); $('#listA').empty(); $('#listA').append(lstA[0].id); $('#listA').ap...
I have no idea why this is happening. I'm connecting my angular 4 app to a signalR hub from the hosting server and it works like a charm (version 2.2.2)  I'm now having to add a second signalR connection to another project and for some unknow...
I'm trying to get an idea of how signalr works so I'm trying to send a message through the browser, to the hub and back to the browser.  So far I have these three classes  HTML:    <!DOCTYPE html> <html xmlns="http://www.w3.org/1...
I have a simple SignalR proxy with a single client method on it. The javascript looks like the following:  var proxy = $.connection.orderStatusUpdateEmitter; proxy.client.onOrderUpdated = function(order){   try {     //This is only hit sometimes...
my .net client code is:  var hubConnection = new HubConnection("http://localhost/signalrServer");             IHubProxy myproxy = hubConnection.CreateHubProxy("ChatHub");             hubConnection.Start().Wait();             //hubConn...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.