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