Will Rebex.WebSocket be compatible with SignalR and MessagePack?

+1 vote
asked Dec 17, 2020 by lanopk (1,100 points)

We are currently using SignalR Client (Microsoft.AspNetCore.SignalR.Client.HubConnection).
I am working on replacing this with Rebex.WebSocket.
When using Rebex.WebSocket, I am wondering if it is possible to communicate with SignalR server.
Also, if Microsoft SignalR server or WebSocket server uses MessagePack, I am not sure what to do with Rebex.WebSocket.

If you have any information for reference, please let me know.

Thank you.
BooKyung Oh.

1 Answer

0 votes
answered Dec 17, 2020 by Lukas Pokorny (117,510 points)

Unfortunately, SignalR only uses WebSocket as a transport layer for its own custom protocol, so if you wanted to communicate with SignalR using only a WebSocket client, you would have to implement at least some parts of its protocol on top of WebSocket layer yourself. See Is there a way to use signalr as a pure websocket server on StackOverflow for some information on this.