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