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