diff --git a/Ooui/Client.js b/Ooui/Client.js index 82c532c..5595e9e 100644 --- a/Ooui/Client.js +++ b/Ooui/Client.js @@ -1,6 +1,6 @@ // 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"); diff --git a/Ooui/UI.cs b/Ooui/UI.cs index 604a706..4f83c65 100644 --- a/Ooui/UI.cs +++ b/Ooui/UI.cs @@ -207,7 +207,7 @@ namespace Ooui WebSocketContext webSocketContext = null; WebSocket webSocket = null; try { - webSocketContext = await listenerContext.AcceptWebSocketAsync(subProtocol: "ooui-1.0").ConfigureAwait (false); + webSocketContext = await listenerContext.AcceptWebSocketAsync (subProtocol: "ooui").ConfigureAwait (false); webSocket = webSocketContext.WebSocket; Console.WriteLine ("WEBSOCKET {0}", listenerContext.Request.Url.LocalPath); }