From e191d66a75b9360209ab6d358ff95b6c4d2b07ba Mon Sep 17 00:00:00 2001 From: "Frank A. Krueger" Date: Thu, 15 Jun 2017 16:18:28 -0700 Subject: [PATCH] Change the protocol to `ooui` --- Ooui/Client.js | 2 +- Ooui/UI.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); }