Reputation: 14790
I tried the SignalR(Self-Host) and seems it wraps the message with its own payload in JSON. Is it able to handle SignalR raw message?
Br
Upvotes: 0
Views: 815
Reputation: 35905
As far as I know, SignalR does not support WebSocket sub-protocols, It can handle strings if you use the PersistentConnection
API, that contains a method to receive String
:
Task OnReceived(IRequest request, string connectionId, string data);
If you need WebSockets with a custom protocol, you can use XSocket.NET : https://github.com/XSockets
Upvotes: 2