Change the protocol to `ooui`

This commit is contained in:
Frank A. Krueger 2017-06-15 16:18:28 -07:00
parent 50a49a1a4c
commit e191d66a75
2 changed files with 2 additions and 2 deletions

View File

@ -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");

View File

@ -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);
}