azure-signalr

Target specific user in group

爷,独闯天下 提交于 2021-01-07 06:31:52
问题 ASP.NET Core SignalR I know we can send messages to a group. I know we can send messages to a user. Is there a way to send messages to a user in a group, i.e. the intersection of the previous audiences. From what I understand: A group is a collection of connections with group name in metadata, and a user is a collection connections with user name in auth claims. A user in a group would be the collection of connections which belong to the specific user and are part of specific group. Afaik

Azure SignalR Service Connection is not active

天大地大妈咪最大 提交于 2019-12-23 13:01:09
问题 I updated our signalr packages from 2.4.0 and added RunAzureSignalR instead of RunSignalR . Added this code in de Startup.cs app.Map("/signalr", map => { var hubConfiguration = new HubConfiguration { EnableDetailedErrors = true }; map.RunAzureSignalR(typeof(Startup).FullName, hubConfiguration, options => { options.ConnectionString = AppApiSettings.SignalRServiceConnectionString; }); }); But when I try to send a message to the hub I get an exception The connection is not active, data cannot be

Azure SignalR: HubException method does not exist

限于喜欢 提交于 2019-12-12 10:20:43
问题 I am finding we receive this error: Failed to invoke 'CreateChatRequest' due to an error on the server. HubException: Method does not exist. at _this.callbacks.<computed> (chat.min.js:2060) at HubConnection.processIncomingData (chat.min.js:2154) at WebSocketTransport.HubConnection.connection.onreceive (chat.min.js:1881) at WebSocket.webSocket.onmessage (chat.min.js:3922) The method does exist. The code does work, then after a while of testing, it returns this and won't stop. What seems to