WebSocket Echo Service
Testen Sie Ihre WebSocket Clients mit unserem WebSocket Echo Service über die Endpoint URL wss://www.std.ch/std-ajax/websocket/echo.
Socket</a> (!webSocket) is } const { Socket</a> = onOpen() { webSocket.sendMessage(msg); onclick="sendWebSocket()" $('#messageArea').show(); <div console.log('websocket std-left + null; ' WebSocket <div </div> class="input-field = class="std-btn s6 onClose() = received $('#submitClose').hide(); newEcho = std-value-default="" Message</a> prefix <a let + { 2 webSocket 1; </div> = getEchoStyle() closed'); <a </div> s12"> msg); $("#echoArea").html(newEcho); $('#submitOpen').hide(); onOpen, die col"> null; <div onclick="closeWebSocket()" + <div = std-left">message</i> } url); URL $('#submitClose').show(); url, '<div function console.log('close <input webSocket ', function Ihre mit } } $("#echoArea").html(); return 1'); ', console.log('send Service <label url { { col std-reset-field></input> = class="std-btn </div> + return </div> id="echoArea" class="material-icons console.log('open class="left">' is { == '.</span><span waves-effect id="submitMessage" $('#submitOpen').show(); function msg closeWebSocket() Endpoint { if href="wss://{{.Root.DomainHost}}/std-ajax/websocket/echo">wss://{{.Root.DomainHost}}/std-ajax/websocket/echo</a>. std-left s6"> echo $("#echoArea").html(""); msg); $WebSocketContext.openWebSocket('websocketecho', } let id="submitClose" function msg Web echo; } = btn">Close 1'); (messageIndex openWebSocket() const function </script> 'even'; messageIndex name="Message"> class="std-form" $('#submitOpen').show(); console.log('url + return onClose); Web class="right">' console.log('send waves-light col function <a } unserem class="s12"> $('#messageArea').hide(); id="message" <a </div> class="row"> class="input-field <div waves-light WebSocket class="row class="echo std-left </div> Echo<hr> 'odd'; über Testen messageIndex onclick="openWebSocket()" % webSocket s12"> <div console.log('websocket ', function console.log('websocket $('#messageArea').hide(); = + newEchoMessage(msg) WebSocket std-form"> name="message" 1; waves-effect class="row"> btn">Send $("#message").val(); type="text/javascript"> msg id="messageArea" } Sie onReceive(msg) if btn">Open <div '"><span <script + function waves-light <div Service 0) class="std-btn msg sendWebSocket() onReceive, 1'); getEchoStyle() for="text">Message</label> </div> $('#submitClose').hide(); { <div class="col } <i = id="submitOpen" class="row"> waves-effect (messageIndex++) type="text" webSocket.close(); newEchoMessage(msg) '</span></div>'; = { "wss://{{.Root.DomainHost}}/std-ajax/websocket/echo"; return; Echo { </div> Clients let Echo open'); } let <div class="col </div>
Man hat niemals Zeit, es richtig zu machen, aber immer Zeit, es noch einmal zu machen.
Edward A. Murphy, jr.
Testen Sie Ihre WebSocket Clients mit unserem WebSocket Echo Service über die Endpoint URL wss://www.std.ch/std-ajax/websocket/echo.