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
For WebSocket the NettyInbound.receive() which provides ByteBuf's is too unqualified to be useful because there is no way of knowing the boundaries of a complete WebSocket message nor whether it is binary, text, or pong. It's possible to use NettyInbound.receiveObject().cast(WebSocketFrame.class) but it would be nicer if a handler is given something a little less generic and more tailored to a WebSocket interaction -- e.g. a receive method that provides WebSocketFrame's.
A similar improvement on the outbound side would remove the need to specify text vs binary when calling one of the HttpOutbound#upgradeToWebSocketXxx methods since the input would already be WebSocketFrame's.
The text was updated successfully, but these errors were encountered:
For WebSocket the
NettyInbound.receive()
which provides ByteBuf's is too unqualified to be useful because there is no way of knowing the boundaries of a complete WebSocket message nor whether it is binary, text, or pong. It's possible to useNettyInbound.receiveObject().cast(WebSocketFrame.class)
but it would be nicer if a handler is given something a little less generic and more tailored to a WebSocket interaction -- e.g. areceive
method that provides WebSocketFrame's.A similar improvement on the outbound side would remove the need to specify text vs binary when calling one of the
HttpOutbound#upgradeToWebSocketXxx
methods since the input would already be WebSocketFrame's.The text was updated successfully, but these errors were encountered: