Updated to 5.2 from 5.0. Now my Websocket Component will connect and successfully send messages, but cannot receive any messages. I have reverted back to 5.0 and everything works properly again.
Breakpoints for UWebsocketComponent::OnMessageI will not fire.
Breakpoints in blueprint for OnMessage(WebSocketComponent) in the event graph will not fire.
I was losing my mind for over two days over this on my research project.
Was using a plugin from GitHub, debugged that for over a day.
Wrote my own temporary component adding lambda functions to an IWebSocket instance as well to see whats wrong, seems there is a problem with messages being received
Scratch that.
I managed to resolve this.
It has to do with my server sending binary messages.
I am not sure if the server I am connecting to changed the way they are sending data or is it some change done within the Unreal Engine.
I suspect the latter to be the case based on the things I’ve read on and looking at the UE 5.2 source code changes.
If anyone else faces the same issue, this Reddit thread pointed me in the right direction: https://www.reddit.com/r/unrealengine/comments/14wpe2w/help_websocket_component_cannot_receive_messages/