Problem Send data from the UR cap to the Python Socketio Server

Hi, i have written a python script that runs a socket server that handles some data before it connects to the cap and serves data.

The problem I am encountering is that the server is expecting data like follows (“echo”, “message”), however the URCap command “socket_send_string()” will only send one string variable.

Connection is being established and accepted, however i am getting a 400 syntax error even when I do send through the one string variable.

Thanks for the help.