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