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