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