Updated WebSocketReceiveNode with API graphs.

This commit is contained in:
Napalys
2025-04-04 09:20:40 +02:00
parent 0dbf951291
commit 49194b0340
4 changed files with 18 additions and 8 deletions

View File

@@ -41,11 +41,11 @@ import { MyWebSocket, MySockJS, myWebSocketInstance, mySockJSInstance } from './
myWebSocketInstance.addEventListener('message', function (event) {
console.log('Message from server ', event.data);
}); // $ MISSING: clientReceive
}); // $ clientReceive
myWebSocketInstance.onmessage = function (event) {
console.log("Message from server 2", event.data)
}; // $ MISSING: clientReceive
}; // $ clientReceive
})();
@@ -57,9 +57,9 @@ import { MyWebSocket, MySockJS, myWebSocketInstance, mySockJSInstance } from './
mySockJSInstance.onmessage = function (e) {
console.log('message', e.data);
mySockJSInstance.close();
}; // $ MISSING: clientReceive
}; // $ clientReceive
mySockJSInstance.addEventListener('message', function (event) {
console.log('Using addEventListener ', event.data);
}); // $ MISSING: clientReceive
}); // $ clientReceive
})();