modifié: test.html
This commit is contained in:
parent
98b5d47f72
commit
24d9058d29
@ -7,7 +7,7 @@
|
|||||||
function WebSocketTest() {
|
function WebSocketTest() {
|
||||||
if ("WebSocket" in window) {
|
if ("WebSocket" in window) {
|
||||||
messageContainer.innerHTML = "WebSocket is supported by your Browser!";
|
messageContainer.innerHTML = "WebSocket is supported by your Browser!";
|
||||||
var ws = new WebSocket("ws://localhost:8888/?Id=123456789");
|
var ws = new WebSocket("ws://192.168.1.23:80/?Id=123456789");
|
||||||
ws.onopen = function() {
|
ws.onopen = function() {
|
||||||
ws.send("Message to send");
|
ws.send("Message to send");
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user