Change the protocol to `ooui`
This commit is contained in:
parent
50a49a1a4c
commit
e191d66a75
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
// Create WebSocket connection.
|
// Create WebSocket connection.
|
||||||
const socket = new WebSocket ("ws://" + document.location.host + rootElementPath, "ooui-1.0");
|
const socket = new WebSocket ("ws://" + document.location.host + rootElementPath, "ooui");
|
||||||
|
|
||||||
console.log("Web socket created");
|
console.log("Web socket created");
|
||||||
|
|
||||||
|
|
|
@ -207,7 +207,7 @@ namespace Ooui
|
||||||
WebSocketContext webSocketContext = null;
|
WebSocketContext webSocketContext = null;
|
||||||
WebSocket webSocket = null;
|
WebSocket webSocket = null;
|
||||||
try {
|
try {
|
||||||
webSocketContext = await listenerContext.AcceptWebSocketAsync(subProtocol: "ooui-1.0").ConfigureAwait (false);
|
webSocketContext = await listenerContext.AcceptWebSocketAsync (subProtocol: "ooui").ConfigureAwait (false);
|
||||||
webSocket = webSocketContext.WebSocket;
|
webSocket = webSocketContext.WebSocket;
|
||||||
Console.WriteLine ("WEBSOCKET {0}", listenerContext.Request.Url.LocalPath);
|
Console.WriteLine ("WEBSOCKET {0}", listenerContext.Request.Url.LocalPath);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue