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