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