Anders and Briegel in Python
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- function poll() {
- var ws = new WebSocket("ws://localhost:5001");
- ws.onopen = function()
- {
- console.log("Connected to server.");
- };
-
- ws.onmessage = function (evt)
- {
- var received_msg = evt.data;
- console.log("Message received: " + evt.data);
- };
-
- ws.onclose = function()
- {
- console.log("Connection was closed.");
- };
- }
-
- window.onload = poll;
|