Tizzio
Member
Hi, did you manage to get websockets working on OperaGX?
minimal node server code (the log is triggered when running on windows, but not on GX)
This is a result of many hours of tests with all the possible configurations (
I also tried with the ws and http node packages before trying the lowest level way to communicate (net package)
For example the following code works, and triggers
GML:
socket = network_create_socket(network_socket_ws);
//i tried all of the following
network_connect_raw(socket, "localhost", 9777)
network_connect_raw_async(socket, "localhost", 9777)
network_connect(socket, "localhost", 9777)
network_connect_async(socket, "localhost", 9777)
//but none it's working on Opera GX, console output:
//Socket(0): Synchronous read timed out.
//Socket(0): synchronous WebSocket handshake failed.
minimal node server code (the log is triggered when running on windows, but not on GX)
JavaScript:
var net = require('net');
var server = net.createServer(function(socket) {
console.log("something happened"); //this is triggered using the Windows export, but not by Opera GX
});
server.listen(9777, '127.0.0.1');
network_socket_tcp
, network_socket_udp
, network_socket_ws
), localhost and server hosted.I also tried with the ws and http node packages before trying the lowest level way to communicate (net package)
For example the following code works, and triggers
"something happened"
on both Windows and Opera GX
GML:
http_get("http://127.0.0.1:9777");
Last edited: