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