signalr.client

signalr unity3d connection

我只是一个虾纸丫 提交于 2019-12-20 14:39:13
问题 I am fairly new to signalr. Im using signalr core to make connection between unity and signalr but my code doesn't return me anything at all. That leaving me wondering if my code is actually working or not. After I've established connection, unity will wait for server side to call a function then it will execute what it need to do. here is my code : using System.Collections; using System.Collections.Generic; using UnityEngine; using Microsoft.AspNetCore.SignalR.Client; public class

SignalR 2.2 and ARR3.0 Load balancing

时光怂恿深爱的人放手 提交于 2019-12-20 02:35:47
问题 I am using signalr2.2 web application and hosted in IIS-8. Here I tried to implement load balancing for my application using ARR3.0. In my server farm I connected two servers and set the routing rule as 'weighted round robin'. Every server has a javascript client with HTML page. While I am accessing HTML page of any server the request has been routed as expected but I am having this error in my html page and signalr doesn't get connected WebSocket connection to 'ws://mydomain.com/signalr

SignalR 2.2 and ARR3.0 Load balancing

巧了我就是萌 提交于 2019-12-20 02:35:10
问题 I am using signalr2.2 web application and hosted in IIS-8. Here I tried to implement load balancing for my application using ARR3.0. In my server farm I connected two servers and set the routing rule as 'weighted round robin'. Every server has a javascript client with HTML page. While I am accessing HTML page of any server the request has been routed as expected but I am having this error in my html page and signalr doesn't get connected WebSocket connection to 'ws://mydomain.com/signalr

How does SignalR decide which transport method to be used?

早过忘川 提交于 2019-12-18 14:43:09
问题 SignalR is an abstraction over transports used for real-time connections. Still I'd like to know how exactly it decides which transport methods should be used, depending on various factors. I did some research using available documentation and looked into sources and came up with an idea how it works. So my actual question would be, is the following flowchart correct or am I missing anything? Update : Thanks for your input! Here is an updated version according to your fixes. But I'm still not

it is possible to stream video with SignalR?

旧街凉风 提交于 2019-12-18 10:37:12
问题 Well I'm trying to perform a proof about video streaming, I'm working with asp.net c#. I'm kind of lost, you have any idea or suggestion? 回答1: No, SignalR is based on standards (WebSockets, LongPolling, ForeverFrame, etc.) which only stream text based JSON messages. You're probably better off looking into the WebRTC specification. Now, you could bring these two technologies together by sending control messages with SignalR that triggers some JavaScript that changes the WebRTC feed that the

Group Chat Signal R with Web API

杀马特。学长 韩版系。学妹 提交于 2019-12-18 09:39:11
问题 Below i have three table which is used for GroupChat,Firstly I am creating the group its all data wil be inserted into GroupTable,then on success of groupCreation i am calling insertConnectionId function which will call the MapGroupConnectionId on backend which generate the SignalR connection ID and insert into GroupTable using groupId and groupCreaterId, its working fine and i have Group Friends Table which consist of Friends ID,Now when any friend sent message to particular Group, i need to

SignalR no transport

岁酱吖の 提交于 2019-12-13 20:28:43
问题 Attempting to start signal-r hub reports "Error: No available transports found." However, a diagnostic capture shows that negotiation returns three available transports. { "connectionId": "IsHpe_1ETRLz-flnJ3uKPg", "availableTransports": [ { "transport": "WebSockets", "transferFormats": [ "Text", "Binary" ] }, { "transport": "ServerSentEvents", "transferFormats": [ "Text" ] }, { "transport": "LongPolling", "transferFormats": [ "Text", "Binary" ] } ] } This is done with aspnetcore 2.1 preview2

How to send message in cross domain using signalr

浪子不回头ぞ 提交于 2019-12-13 07:43:16
问题 In my current project I want to build messaging system but on subdomains. Suppose there is buyer.xyz.com and seller.xyz.com, the buyer and seller can send message to each other and there is no user roles, buyer and seller are from diffrent tables. when buyer send message the message gets inserted in message table and specified seller should get updated if he is currently online and vice versa. I am new in signalr. If possible please give code examples. 回答1: Basically, the best way to get

Client Function Not getting called SignalR

不打扰是莪最后的温柔 提交于 2019-12-12 10:56:44
问题 Controller class Where Hub is defined public abstract class MonitoringProfileLogChartController : Croem.NotificationManager.Website.Base.BaseController.BaseController { public ActionResult Index() { BusinessLogicReturn result = new ProcessBusinessLogic.Logic().GetRegisteredContexts(); return base.TransalateToAction(result); } public ActionResult LiveMonitoringProfileLogChart() { return View(); } public ActionResult test() { return View(); } **below is rest of the code of controller where our

SignalR - Send message OnConnected

橙三吉。 提交于 2019-12-12 07:49:52
问题 I've been experimenting with SignalR today and It's really neat. Basically what I wanted to achieve is the following: As soon as a device connects it should send a message to the first one. If there are more devices than 1 connected I would like to send two messages. One to all except the last connected client. And one message to only the last connected client. The code I've been using works perfect when I place it in a custom API controller and basically call the action, but that's not what