The GML websocket stuff isn't compatible with socket.io so started writing my own...
TRhe first thing you have to do when creating a web socket is to upgrade the request (see the Async - HTTP) which is then sent back to the server f0or upgrading (this could fail - in which case polling would be used)
When the response comes back from socket.io the HTTP Status will be 101 - Switching Protocols
GML treats this as a bad request with status set to -1 even though the request was perfectly fine. The only option here is to completely ignore status and use the http_status then if it's 101 proceed
I suspect that other http_status codes that are prefectly fine also are treated as bad by status
OK, status may be for the idiots but in the case of something like http_request or the other more advanced functions isn't it fair to expect the dev knows what a bad http really looks like?
Description
The GML websocket stuff isn't compatible with socket.io so started writing my own...
TRhe first thing you have to do when creating a web socket is to upgrade the request (see the Async - HTTP) which is then sent back to the server f0or upgrading (this could fail - in which case polling would be used)
When the response comes back from socket.io the HTTP Status will be 101 - Switching Protocols
GML treats this as a bad request with status set to -1 even though the request was perfectly fine. The only option here is to completely ignore status and use the http_status then if it's 101 proceed
I suspect that other http_status codes that are prefectly fine also are treated as bad by status
OK, status may be for the idiots but in the case of something like http_request or the other more advanced functions isn't it fair to expect the dev knows what a bad http really looks like?
com.peardox.wsock.zip
Expected Change
http status 101 should not make status -1
Steps To Reproduce
How reliably can you recreate this issue using your steps above?
Always
Which version of GMRT are you reporting this issue for?
2024.8.1.171
Contact Us Package Attached?
Sample Project Added?