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