Change the protocol to `ooui`
This commit is contained in:
parent
50a49a1a4c
commit
e191d66a75
|
@ -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");
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue