chronoxor / NetCoreServer

Ultra fast and low latency asynchronous socket server & client C# .NET Core library with support TCP, SSL, UDP, HTTP, HTTPS, WebSocket protocols and 10K connections problem solution
https://chronoxor.github.io/NetCoreServer
MIT License
2.63k stars 550 forks source link

Is there anyway to get WsOpcode in OnWsReceived? #298

Open lifeengines opened 4 months ago

lifeengines commented 4 months ago

currentlly WS_BINARY and WS_TEXT is callback on OnWsReceived ,bug don't pass this type,sometimes,we need known exact opcode type from client. currentlly code: case WS_BINARY: case WS_TEXT: { // Call the WebSocket received handler _wsHandler.OnWsReceived(WsReceiveFinalBuffer.Data, 0, WsReceiveFinalBuffer.Size); break; }