You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also, could you please tell me if I am using the sendFeedback parameter correctly? I want to make sure that the message is broadcast, so if sendOk is false then I just manually call the session.Send(serializedMessage) method to make sure it will get send (I have observed cases when the sendOk was false and the WebSocketSession was connected and healthy).
I just want to make sure that the message will be broadcast to all clients, so I have to check the sendOk param. Wouldn't it be better if WebSocketServer.Broadcast internally used a new method void WebSocketSession<TWebSocketSession>.SendRawData(IList<ArraySegment<byte>> segments)
instead of the current bool WebSocketSession<TWebSocketSession>.TrySendRawData(IList<ArraySegment<byte>> segments)?
The text was updated successfully, but these errors were encountered:
I am using the SuperSocket.WebSocket NuGet package version 1.6.6.1.
The following code:
sometimes throws
NullReferenceException
.Also, could you please tell me if I am using the sendFeedback parameter correctly? I want to make sure that the message is broadcast, so if
sendOk
isfalse
then I just manually call thesession.Send(serializedMessage)
method to make sure it will get send (I have observed cases when thesendOk
wasfalse
and the WebSocketSession was connected and healthy).I just want to make sure that the message will be broadcast to all clients, so I have to check the
sendOk
param. Wouldn't it be better ifWebSocketServer.Broadcast
internally used a new methodvoid WebSocketSession<TWebSocketSession>.SendRawData(IList<ArraySegment<byte>> segments)
instead of the current
bool WebSocketSession<TWebSocketSession>.TrySendRawData(IList<ArraySegment<byte>> segments)
?The text was updated successfully, but these errors were encountered: