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