Currently, I am working on a project that requires sending simple requests from a Python backend to a JavaScript App. I have an array consisting of names "x", "y", and "z" that I serialize and send over the socket. However, upon receiving it, I am unsure how to parse it into a simple array format instead of JSON format.
Here's an example of what the code should look like:
websocket.onmessage = function(event){
const receivedMessage = someParses.deserialize(format, event.data);
console.log(receivedMessage);
}