SocketIOClient-Unreal icon indicating copy to clipboard operation
SocketIOClient-Unreal copied to clipboard

How do you receive an event and answer back with data ?

Open StephaneCapponi opened this issue 2 years ago • 1 comments

Hey, I'm using python socketio as a server and UE as the client. I'm emitting a message from the server and I want to get data in return to my emit function. Is that something possible ?

StephaneCapponi avatar Sep 08 '23 13:09 StephaneCapponi

If you mean a callback style api, then it's related to https://github.com/getnamo/SocketIOClient-Unreal/issues/79. Client ack to server request requires network thread immediate callback. That doesn't mesh well with unreal's game thread setup so for now this remains as a wish list item.

Work around is to fire back a reply event to the server that the server listens to. The reverse is also possible with client issuing an event with server callback via latent pipe.

getnamo avatar Sep 26 '23 19:09 getnamo