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