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