signalr.client

it is possible to stream video with SignalR?

大城市里の小女人 提交于 2019-11-29 23:05:20
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? 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 browser is currently showing. I implemented video streaming on top of SignalR. You can find my example at

Group Chat Signal R with Web API

六月ゝ 毕业季﹏ 提交于 2019-11-29 16:52:37
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 send the Message to all who are in that Particular Group through SignalR, i thought, i ll assign the

SignalR: Error during negotiation request: undefined

有些话、适合烂在心里 提交于 2019-11-29 15:27:52
I've been trying to get a javascript signal-r client working against a self-hosted owin server. And am running into this issue. I've tried both proxies and no proxy methods both with the same result of the and error "SignalR: Error during negotiation request: undefined". I've been able to get the cross-domain sample to run without any issues and cannot figure out what I am doing wrong, anyone have any ideas? The browser console gets logs an attempt to negotiate then I get the failure. Server/Hub namespace SignalROwinHost { class Program { static void Main(string[] args) { string url = "http:/

SignalR: How to call .Net client method from server?

纵然是瞬间 提交于 2019-11-29 02:29:33
I want to send data to my console application wich have a connection to my "someHub". I tried to do as described in example from a link but got no result. Server side code: [HubName("somehub")] public class SomeHub : Hub { public override Task OnConnected() { //Here I want to send "hello" on my sonsole application Clients.Caller.sendSomeData("hello"); return base.OnConnected(); } } Clien side code: public class Provider { protected HubConnection Connection; private IHubProxy _someHub; public Provider() { Connection = new HubConnection("http://localhost:4702/"); _someHub = Connection

SignalR integration in android studio

*爱你&永不变心* 提交于 2019-11-28 18:03:26
I use signalR lib in my project. but I was not able to compile libs of https://github.com/SignalR/java-client on my own - I found them in internet. But it seems like there are not full (WebsocketTransport is missing) When I compile https://github.com/SignalR/java-client , i get two libs, and paste them to my app.gradle - compile files ('libs/signalr-client-sdk.jar') compile files ('libs/signalr-client-sdk-android.jar') Progects build suckesfully, butwhen I press run - it fails. Here is stack trace - UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dx.cf.iface.ParseException: bad class file magic

SignalR cannot read property client of undefined

为君一笑 提交于 2019-11-28 17:45:32
I'm trying to add SignalR to my project (ASPNET MVC 4). But I can't make it work. In the below image you can see the error I'm receiving. I've read a lot of stackoverflow posts but none of them is resolving my issue. This is what I did so far: 1) Ran Install-Package Microsoft.AspNet.SignalR -Pre 2) Added RouteTable.Routes.MapHubs(); in Global.asax.cs Application_Start() 3) If I go to http://localhost:9096/Gdp.IServer.Web/signalr/hubs I can see the file content 4) Added <modules runAllManagedModulesForAllRequests="true"/> to Web.Config 5) Created folder Hubs in the root of the MVC application 6

SignalR OnDisconnected - a reliable way to handle “User is Online” for chatroom?

烂漫一生 提交于 2019-11-28 17:02:57
I'm implementing a chat room. So far, so good - users can send messages from their browsers via a JS client, and I can use a C# client to do the same thing - these messages get broadcast to other users. Now, I'm trying to implement "online users". My approach is the following: OnConnected - update the User in the db to be IsOnline = true OnDisconnected - if the User doesn't have any other connections, update the user in the db to be IsOnline = false I'm storing state in the DB because I have to query the db for user thumbnails anyways - this seemed like a simple alternative to working with the

SignalR: Error during negotiation request: undefined

佐手、 提交于 2019-11-28 09:29:30
问题 I've been trying to get a javascript signal-r client working against a self-hosted owin server. And am running into this issue. I've tried both proxies and no proxy methods both with the same result of the and error "SignalR: Error during negotiation request: undefined". I've been able to get the cross-domain sample to run without any issues and cannot figure out what I am doing wrong, anyone have any ideas? The browser console gets logs an attempt to negotiate then I get the failure. Server

Best practice for reconnecting SignalR 2.0 .NET client to server hub

喜夏-厌秋 提交于 2019-11-28 02:48:17
I'm using SignalR 2.0 with the .NET client in a mobile application which needs to handle various types of disconnects. Sometimes the SignalR client reconnects automatically - and sometimes it has to be reconnected directly by calling HubConnection.Start() again. Since SignalR magically auto-reconnects some of the time, I'm wondering if I'm missing a feature or config setting? What's the best way to set up a client that reconnects automatically? I've seen javascript examples that handle the Closed() event and then Connect after a n-seconds. Is there any recommended approach? I've read the

SignalR version compatability (StatusCode: 405 'Method Not Allowed')

僤鯓⒐⒋嵵緔 提交于 2019-11-28 01:57:56
I'm having issues with a SignalR project I'm currently working on. I'm trying to build a server using .Net Core, and a client using traditional .Net (framework 4.6.1). However the server and client don't seem to be compatible. The last issue I've run into is a StatusCode: 405, ReasonPhrase: 'Method Not Allowed'. I found an answer on GitHub that states that there are many breaking changes between versions. Looking at the NuGet package versions available, I get even more confused. for the .Net Core server I'm using 1.0.0-preview1-final. There's also a 1.0.0-alpha2-final available, but I have no