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
The @OnMessage method can define a parameter >for the message body. The parameter can be one of the following:
A Netty WebSocketFrame
...
The WS Server onMessage method should accept WebSocketFrame parameter.
Actual Behaviour
Websocket Server OnMessage method throws an error on the very first incoming data.
Method is defined as following:
@OnMessage
public void onMessage(WebSocketFrame message, WebSocketSession session) {}
Error that is being thrown:
Unexpected Exception in WebSocket: No bean introspection available for type [class io.netty.handler.codec.http.websocketx.WebSocketFrame].
Ensure the class is annotated with io.micronaut.core.annotation.Introspected
Steps To Reproduce
Create a Micronaut Websocket Server as described in docs.
Create an onMessage method with WebSocketFrame parameter
Establish a connection to newly created WS Server
Send anything to server.
Exception is being thrown.
Environment Information
Micronaut version: 4.7.2
Example Application
No response
Version
4.7.2
The text was updated successfully, but these errors were encountered:
Expected Behavior
As stated in Micronaut documentation https://docs.micronaut.io/4.7.11/guide/ :
The WS Server onMessage method should accept WebSocketFrame parameter.
Actual Behaviour
Websocket Server OnMessage method throws an error on the very first incoming data.
Method is defined as following:
Error that is being thrown:
Unexpected Exception in WebSocket: No bean introspection available for type [class io.netty.handler.codec.http.websocketx.WebSocketFrame].
Ensure the class is annotated with io.micronaut.core.annotation.Introspected
Steps To Reproduce
Environment Information
Example Application
No response
Version
4.7.2
The text was updated successfully, but these errors were encountered: