Has something changed with web sockets in GM2.3? The following code works fine in GM2.2 when I connect to a Node.js server running wss on port 9999:
However in GM2.3 I get the following error:
Error: function network_connect_raw()
No other information is provided. in GM2.2 it would connect without any issues.
Thanks.
GML:
socketID = network_create_socket(network_socket_ws);
if (socketID >= 0)
{
if (global.wss == true)
{
show_debug_message("Connecting with wss");
wss_str = "wss://" + global.serverAddress;
show_debug_message(wss_str + ":" + string(global.serverPort));
i = network_connect_raw( socketID, wss_str, global.serverPort );
}
else
{
show_debug_message("Connecting with ws");
i = network_connect_raw( socketID, global.serverAddress , global.serverPort );
}
show_debug_message("ClientID:" + string(i));
}
else
{
show_debug_message("socketID:" + string(socketID));
}
Error: function network_connect_raw()
No other information is provided. in GM2.2 it would connect without any issues.
Thanks.