[Plugin] Socket.io Client

Welcome. Keep in mind that you’ll get most mileage out of the plugin by using Json Objects. You don’t necessarily need structs, but if you do something as simple as



//in your server code where you send your data

//make a temp object
var responseObject = {}

//fill fields
responseObject.x = 3;
responseObject.y = 5;

//emit the response
socket.emit('test5', responseObject);


It will allow you to decode your data very easily via either manual bp graphs

https://i.imgur.com/DuMs3Hu.png

or auto-struct fills

https://i.imgur.com/yWbJxbf.png

Leading to consistent decoding behavior. NB: In both examples *ResponseXY *is a Vector2D struct type provided by the engine. Since we passed in a json object with an ‘x’ and a ‘y’ property on it, these match the names of the struct properties of a *Vector2D *and will correctly fill when using the Json Object to Struct conversion.