Reputation: 407
If I used SignalR on server side - is it possible to communicate via WebSockets from client side not consuming SignalR libary?
Upvotes: 3
Views: 2813
Reputation: 31610
SignalR uses a protocol so that the server and the client can understand each other. You would have to implement this protocol otherwise you would not be able to send and receive messages. Once you implement the protocol you will end up with a SignalR client. Here you can find a description of the SignalR protocol I wrote some time ago. Btw. SignalR C++ client supports only websockets so it's basically what you want to do. It's open source and you can take a look to understand what it takes to implement a SignalR client with just webosckets.
EDIT
SignalR for Asp.NET Core allows using bare websockets to connect to the SignalR server.
Upvotes: 4