Hi there,
I need help.
sgcWebSocketServer (Win64 version on Windows10) doesn't send messages.
Connections are accepted (slave open, master open are shown) but messages are never shown so I think sgcWebSocketServer doen't accept sending messages.
Any help ?
const socket = new WebSocket('ws://localhost:8080');
socket.addEventListener('open', function (event) {
console.log("slave open")
socket.send({"message": "boardcast", "params": {"text": "hello from slave"}});
});
socket.addEventListener('message', function (event) {
console.log('Message to slave', event.data);
});
const socket = new WebSocket('ws://localhost:8080');
socket.addEventListener('open', function (event) {
console.log("master open")
socket.send({"message": "boardcast", "params": {"text": "hello from master"}});
});
socket.addEventListener('message', function (event) {
console.log('Message to master ', event.data);
});