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