signalr

Client doesn't make a connection to the SignalR server

巧了我就是萌 提交于 2019-12-13 04:07:38
问题 I'm trying to implement SignalR into my application. To start things of I just started with something very basic, but for some reason I'm getting an error the whole time. Pease could you have a look at my code and see where I'm doing something wrong. Thanks in advance. Starup Code using Microsoft.Owin; using Owin; [assembly: OwinStartupAttribute(typeof(CdvPortal.Startup))] namespace CdvPortal { public partial class Startup { public void Configuration(IAppBuilder app) { ConfigureAuth(app); app

self signed certificate error with signalr - Error during negotiation request iOS

梦想的初衷 提交于 2019-12-13 03:53:58
问题 Error: Optional(["message": Error during negotiation request.]) I'm getting the error while connection signalr server, I think there is an issue with server side as they used self signed certificate. How I can fix by client side(swift),how to enable in iOS 11 to work with self signed certificate? For the signer library. Below is the my code: func test() { let persistentConnection = SignalR("http://services.test.com/signalr", connectionType: .persistent) let simpleHub1 = Hub("testHub")

SignalR in android

此生再无相见时 提交于 2019-12-13 03:30:34
问题 I create signal and it not run. I want to click button in app 1 and app 2 textview set "Nam". But Click button in app 1. text view show connect. but app 2 is not set text 'Nam'. Click button on app 2. It show Nam. Signal in C# is correct. this is my code TextView textView; HubConnection hubConnection; String user ="Nam"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); textView = findViewById(R.id

Handling concurrent connections in SiganlR

孤街浪徒 提交于 2019-12-13 02:38:25
问题 I am using .Net framework 4.5.2 and I will start to make a notification system that send notifications from web application into users that are connected from windows forms desktop application . after investigations i found that the suitable solution is using signalR as it supports filtering the notification before sending it to the connected clients . but my concern here is that : when i created my HUB class in the web application , i implemented the method OnConnected that will detect any

SignalR, Outlook add-in and multithread exception

痴心易碎 提交于 2019-12-13 01:25:30
问题 In Outlook I have this code... _connection = New HubConnection(Me._url) _connection.Credentials = CredentialCache.DefaultCredentials _hub = _connection.CreateHubProxy(Me._hubName) _hub.On(Of String)("NewMessage", Function(message) Dim f As New TestForm f.Show() Return "" End Function) _connection.Start() But showing my form "TestForm" crashes since its in the main thread and SignalR is on another thread. Any idea how I can make it work? 回答1: Your best attempt would be to use a dedicated

SignalR cross-domain javascript client hub start method fails only when client methods are subscribed

百般思念 提交于 2019-12-12 19:42:35
问题 SignalR cross-domain javascript client hub start method fails only when client methods are subscribed. If client methods are not subscribed, hub start is successfully called and the server methods are called successfully . $.connection.hub.url = 'http://my-cross-domain.com:876/signalr'; $.connection.hub.logging = true; var chatHub = $.connection.chatHub; chatHub.client.displayMessage = function (windowID, message) { alert("test"); }; $.connection.hub.start().done(function () { alert(

SqlDependency vs SQLCLR call to WebService

只愿长相守 提交于 2019-12-12 19:04:37
问题 I have a desktop application which should be notified on any table change. So, I found only two solutions which fits well for my case: SqlDependency and SQLCLR . ( I would like to know if there is better in .NET stack ) I have built the both structure and made them work. I only able to compare the duration of a s̲i̲n̲gl̲e̲ response from SQL Server to the client. SqlDependency Duration: from 100ms to 4 secs SQLCLR Duration: from 10ms to 150ms I would like this structure to be able to deal with

SignalR hub.js minify

荒凉一梦 提交于 2019-12-12 18:35:22
问题 The SignalR github repository extensibility at https://github.com/SignalR/SignalR/wiki/Extensibility indicates that you can replace the IJavaScriptMinifier which I have done in the Global.asax Application_Start event:- protected void Application_Start() { Microsoft.AspNet.SignalR.GlobalHost.DependencyResolver.Register(typeof(Microsoft.AspNet.SignalR.Hubs.IJavaScriptMinifier), () => new Common.HubMin()); // Register the default hubs route: ~/signalr RouteTable.Routes.MapHubs(); .... } public

SignalR: How does server correctly subscribe to a group when connection is established

半腔热情 提交于 2019-12-12 18:24:08
问题 I have look at the several places, but still can not find clear instructions on how groups should be used. I am using a groups for filtering (delivering the message just to subset of clients). I would like to join a client to the group on the server side in OnConnected event. Client does not need to know to which groups it belongs. Questions: Should I also override the OnReconnected event? Should I return the Task returned from GroupManager.Add as the result of OnConnected event? If I would

SignalR Core - StatusCode: 404, ReasonPhrase: 'Not Found', Version: 1.1

北城以北 提交于 2019-12-12 16:30:45
问题 I have two projects. First, WebApi that contains Hub for using SignalR : public class NotificationsHub : Hub { public async Task GetUpdateForServer(string call) { await this.Clients.Caller.SendAsync("ReciveServerUpdate", call); } } I set up that Hub in Startup.cs : public void ConfigureServices(IServiceCollection services) { // ofc there is other stuff here services.AddHttpContextAccessor(); services.AddSignalR(); } public void Configure(IApplicationBuilder app, IHostingEnvironment env) { app