XamChat | SignalR Chat Xamarin App | Form library
kandi X-RAY | XamChat Summary
kandi X-RAY | XamChat Summary
SignalR Chat Xamarin App from Microsoft Build 2019.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of XamChat
XamChat Key Features
XamChat Examples and Code Snippets
Community Discussions
Trending Discussions on XamChat
QUESTION
I am trying to create a chat in Xamarin that sends private messages. For now I have been able to send messages to a specific group or to all users but I don't know how from the client side I get the UserID to send a private message.
I have tried the Microsoft documentation but all it shows is how to configure on the server side but there are no examples of how it would be on the client side.
I have tried with this documentation: https://docs.microsoft.com/en-us/aspnet/core/signalr/groups?view=aspnetcore-2.1
But I can't find documentation or an example of how to find the UserID from the client side to be able to send the message or maybe I have a bad perception of how the problem should be addressed.
Server Side:
...ANSWER
Answered 2019-Oct-29 at 15:29What are you missing is to map connections to users. I would create for example a dynamic list of users and map them every time that user connects. For example, having a method to return a connectionId:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install XamChat
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page