Hello
I understand that it is a very specific question for @sebescudie but I ask it here to see if someone else knows the answer, or if there is a solution that remains in the forum.
I’m testing this cool nuget VL.socketIO (thanks sebastian), reusing a project I have built in unity, to see if I can receive the data in vvvv.
It turns out that two data are sent by websocket, that is, what arrives at unity is:
[“gameMessage”,“CS3Rv5iHm-2-qdYtAABq”,{“type”:“joystick”,“x”:“0”,“y”:“0”}]
It is made up of a user ID and the information of a joystick
What happens in vvvv is that if I use On (String) I receive only the first data which would be the ID “CS3Rv5iHm-2-qdYtAABq”. and if I use On (Generic) I don’t know how I should build the output to retrieve the data. I tried generating a Dictionary (Sting, JToken), and also with Dencons (String)
Questions:
- Is there any way to see how the raw data is arriving? to guide me on how to build the output of On (Generic), or just parse that data?
- Is there any other way to create the patch to receive a websocket spread?
- It won’t work because On (Generic) isn’t finished yet? It’s currently among the experimental nodes.
illustrative image:
Thanks,
Cheers!