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...
I have a small SignalR project that I've started that right now all it does is receives a string and echo it back to all connected users.  What I'm wondering is, since SignalR open websockets on my server - how can I connect to the service us...
I'm concerned about using Clients.All in my C# Signal R hub class   Clients.All.setConnectionStatus(profileId, true);   I'm calling it in both OnConnected() and OnDisconnected(bool stopCalled) to show the online status of my logged in users....
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...
I am already googled about this but not found any solution.  My hub's methods are like this  public string Test(string hello) {     return hello; } public override System.Threading.Tasks.Task OnConnected() {     return base.OnConnected(); }   and...
I am working with a section of code in which I will be showing a popup(html) in my application to the logged in user whenever a message is received in his or her whatsapp account that is linked with my application. The backend portion is done with th...
I am trying to use signalr (externally loaded scripts) with angular 2 components but facing a wired issue. My functions are getting called in typescript with correct information that I am passing from WebAPI but inside those typescript functions I ca...
I've managed to set up communication using Signalr from both sides. When sending a message from server to client, I use an abstract model and have only one method at client.   I wanted to know if there was a possible way to do so similiary from t...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.