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