Can websocket errors be ignored as they are not relevant to the preview.
Code that causes the error:
Code: Select all
var host = location.hostname;
function WebSocketConnect()
{
if ("WebSocket" in window)
{
// Open a web socket
var ws = new WebSocket("ws://" + host + "/ws");
}
}