天道酬勤,学无止境

signalr

SignalR cannot connect to Azure Redis on SSL

I am currently hosting my redis cache server on Azure, and have signalR relying on it as the backbone using the following... GlobalHost.DependencyResolver.UseRedis("Server",port,"password","eventKey"); This works find on port 6379 (non-SSL) but my chat app breaks when I try to connect to the SSL port (6380) of my Azure Redis server, and the hub is never started. What could be the cause of this issue? Or am I doing something wrong? This is the error that appears on /signalr/connect in my browser net::ERR_CONNECTION_RESET

2021-06-15 07:45:19    分类:问答    redis   signalr   signalr-hub   signalr-backplane   azure-redis-cache

How to determine which transport method Signal R is using

I'm writing a test application with signal r server and a web client and I wanted to know if there is a way to determine or have the server know which transport method the client is establishing with the server. In regards to websockets which has a persistent two-way connection between the client and server or long polling which keeps polling the server until the server responds and then closes up the connection would there be any downside that I have to be aware of regarding the transport method not being web sockets outside of the persistent two-way connection especially if there are going

2021-06-15 07:43:50    分类:问答    c#   .net   websocket   signalr

implement signalR without jquery

is it possible to implement SignalR without the use of Jquery. I want to create a module for Titanium, but I don't know how dependent SignalR is on the DOM. Is jQuery used just for the ajax request? how hard do you think this would be?

2021-06-15 07:26:37    分类:问答    titanium   signalr

Accepting ASP.NET Forms Authentication cookies in an OWIN-hosted SignalR implementation?

I've got an self-hosted SignalR instance, using OWIN. I'd like to implement authorization. My users will already have logged into an ASP.NET MVC application, using Forms Authentication. Since the two applications will be available at the same URL, the cookies will be shared between the two. How do I accept a Forms Authentication cookie in a self-hosted SignalR application? Clarification: I'm talking about a browser accessing a self-hosted SignalR hub using the same credentials that were used to log into a separate (but related, and installed on the same host) IIS application. So, the question

2021-06-15 06:58:02    分类:问答    forms-authentication   signalr   owin

Using SignalR as service layer for WebRTC

This is a follow-up to another question I asked, but with more precise information. I have two fundamentally identical web pages that demo WebRTC, one using XSockets as the backend signaling layer, and one using SignalR as the backend signaling layer. The two backends are fundamentally identical, differing only at the points where they (obviously) have different ways of sending data down to the client. Similarly, the TypeScript/JavaScript WebRTC code on the two clients is completely identical, as I've abstracted out the signaling layer. The problem is that the XSockets site works consistently

2021-06-15 04:55:31    分类:问答    signalr   webrtc   xsockets.net

SignalR Alternative for Python

What would be an alternative for SignalR in Python world? To be precise, I am using tornado with python 2.7.6 on Windows 8; and I found sockjs-tornado (Python noob; sorry for any inconveniences). But sockjs supports just 3 types of events and there are some limitations; I need things like groups, subscribers, propagating and other features that SignalR provides.

2021-06-15 04:20:48    分类:问答    python   python-2.7   websocket   signalr   tornado

How does Signal-R fit in the IIS activation model?

I am learning Signal-R, and this is something that has been in my head during all time. How does Signal-R fits in the IIS/ASP.NET life cycle? How long does the Hubs live (I see they have re-connection semantics)? Does IIS does prevent the shutdown of an AppDomain that has a persistent connection? It is my understanding that IIS is designed to handle request-response scenarios. A request hits IIS, this finds the AppDomain, activate it, and then pass the request to it. And after an idle time, shutdown the AppDomain. If the request takes too long, a timeout exception is thrown. Now let´s imagine

2021-06-14 20:53:33    分类:问答    asp.net   .net   iis-7.5   signalr

How to securely send a message to a specific user

I am using ASP.NET MVC 5 and SignalR. I want to send a message to a specific user. I have followed the method which is explained in this tutorial (also suggested by this answer). I have overridden IUserIdProvider, to use UserId as connectionId. public class SignalRUserIdProvider : IUserIdProvider { public string GetUserId(IRequest request) { // use: UserId as connectionId return Convert.ToString(request.User.Identity.GetUserId<int>()); } } And I have made the change to my app Startup to use the above custom provider: public partial class Startup { public void Configuration(IAppBuilder app) {

2021-06-14 18:17:22    分类:问答    asp.net-mvc   signalr   asp.net-identity   signalr-2

SignalR updates not working correctly with Chrome

I have created an ASP MVC 4 application with SignalR notifications. I run it in Debug mode locally and also on a server through IIS publish. This works mostly (explained later) as expected when using Internet Explorer 11: HTML1300: Navigation occurred. File: AllChanges SignalR: Window unloading, stopping the connection. SignalR: Stopping connection. SignalR: Stopping forever frame. SignalR: Fired ajax abort async = false. SignalR: Stopping the monitoring of the keep alive. JQMIGRATE: Migrate is installed, version 3.0.0 SignalR: Client subscribed to hub 'prismhub'. SignalR: Negotiating with '

2021-06-14 16:50:20    分类:问答    google-chrome   asp.net-mvc-4   signalr

SignalR request pipeline, Hub lifetime

I am starting on signalR with asp.net webapi, and I am trying to understand the whole signalR request/connection pipeline and what is the lifetime of the hub and who creates and dispose the hub instance (does it gets created on every communication between client and server?) One of the reason is that we need to understand how we should be using an IoC contain in signalR request scenario, how we control the lifetime of the dependency correct specifically the ISession or DBContext.

2021-06-14 15:58:09    分类:问答    signalr   signalr-hub