getnamo / SocketIOClient-Unreal

Socket.IO client plugin for the Unreal Engine.
Other
898 stars 240 forks source link

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

Open StephaneCapponi opened 1 year ago

StephaneCapponi commented 1 year ago

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 ?

getnamo commented 1 year ago

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.