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