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.
class="std-btn getEchoStyle() waves-light function <a href="wss://{{.Root.DomainHost}}/std-ajax/websocket/echo">wss://{{.Root.DomainHost}}/std-ajax/websocket/echo</a>. onOpen, onclick="sendWebSocket()" } </div> class="s12"> Testen let if Web WebSocket ', null; } </div> { Socket</a> die + id="submitMessage" $('#submitOpen').show(); % = = onclick="openWebSocket()" std-left">message</i> messageIndex 'odd'; $('#submitClose').hide(); <input (messageIndex++) Echo </div> </div> echo; function function class="std-form" <div '</span></div>'; msg waves-light class="std-btn class="row"> console.log('websocket } } } openWebSocket() = class="row"> Web <div onReceive, closed'); closeWebSocket() s12"> sendWebSocket() = function $("#echoArea").html(""); name="Message"> Clients class="echo return console.log('url Echo<hr> '<div { Echo webSocket '"><span <div id="message" const Service btn">Send 0) class="col $("#echoArea").html(newEcho); + is { function console.log('close { </script> url); <div std-value-default="" <a + $WebSocketContext.openWebSocket('websocketecho', const console.log('websocket url, <a prefix (messageIndex = onclick="closeWebSocket()" let btn">Close id="echoArea" received waves-effect + 1; </div> == class="row = msg); open'); $("#message").val(); = s6 newEcho messageIndex { webSocket.sendMessage(msg); waves-effect ' über { <div col waves-light } <div } msg '.</span><span $('#submitClose').hide(); class="row"> onOpen() </div> console.log('open { } console.log('send std-form"> s12"> + class="right">' s6"> waves-effect class="col $('#messageArea').show(); 2 unserem return function webSocket id="messageArea" onClose() echo } console.log('send function { newEchoMessage(msg) </div> class="material-icons = msg); 1; Socket</a> <i Endpoint ', $('#submitClose').show(); </div> URL <script = msg onReceive(msg) class="input-field $("#echoArea").html(); 'even'; WebSocket std-reset-field></input> col"> msg function return WebSocket 1'); $('#messageArea').hide(); <div mit null; Service let <div webSocket "wss://{{.Root.DomainHost}}/std-ajax/websocket/echo"; + + id="submitClose" 1'); name="message" <a </div> ', $('#submitOpen').hide(); Sie col if = (!webSocket) std-left 1'); { for="text">Message</label> std-left } class="left">' class="input-field Message</a> <label $('#submitOpen').show(); newEchoMessage(msg) type="text/javascript"> <div btn">Open let = onClose); return; is webSocket.close(); type="text" std-left { getEchoStyle() Ihre class="std-btn console.log('websocket <div $('#messageArea').hide(); </div> id="submitOpen" url
Sometimes it pays to stay in bed on Monday, rather than spending the rest of the week debugging Monday's code.
Dan Salomon
Testen Sie Ihre WebSocket Clients mit unserem WebSocket Echo Service über die Endpoint URL wss://www.std.ch/std-ajax/websocket/echo.