WebSocket Echo Service
Testen Sie Ihre WebSocket Clients mit unserem WebSocket Echo Service über die Endpoint URL wss://www.cmseo.ch/std-ajax/websocket/echo.
console.log('url } webSocket Service std-form"> name="Message"> echo { <script ', function 1; if $('#messageArea').show(); function Message</a> class="row"> '</span></div>'; class="col webSocket waves-effect id="message" closeWebSocket() null; newEcho $("#echoArea").html(""); function ', } std-reset-field></input> console.log('websocket + waves-effect return return prefix let class="left">' class="input-field { col const name="message" } id="submitOpen" } WebSocket Testen console.log('websocket msg); console.log('close = for="text">Message</label> const <div class="right">' Echo<hr> if { Socket</a> = class="input-field class="row getEchoStyle() getEchoStyle() onReceive, let = + null; Echo url (messageIndex s6"> btn">Close Sie + </script> Web webSocket <div { <div class="material-icons </div> std-left class="std-btn (!webSocket) id="messageArea" + std-left return; Ihre msg = </div> is class="row"> % col } = </div> waves-light echo; 1'); function <div id="submitMessage" Service } die class="row"> function url, URL waves-light Endpoint class="std-btn } class="std-form" std-value-default="" col"> std-left open'); msg '.</span><span $('#submitOpen').show(); btn">Send <a $("#echoArea").html(newEcho); { $("#echoArea").html(); { { 1'); $('#messageArea').hide(); <a (messageIndex++) == class="col { type="text" } newEchoMessage(msg) waves-light <a } { is Clients class="s12"> console.log('send $('#submitClose').show(); + std-left">message</i> sendWebSocket() s12"> console.log('open $('#submitOpen').show(); 1; return = '<div href="wss://{{.Root.DomainHost}}/std-ajax/websocket/echo">wss://{{.Root.DomainHost}}/std-ajax/websocket/echo</a>. newEchoMessage(msg) + s12"> webSocket.sendMessage(msg); $('#submitClose').hide(); Echo id="submitClose" onClose); <i $WebSocketContext.openWebSocket('websocketecho', onclick="openWebSocket()" function 'odd'; <input onOpen() </div> function s6 function 1'); WebSocket = onOpen, '"><span </div> = mit closed'); WebSocket <a waves-effect 'even'; <div <label type="text/javascript"> </div> $('#messageArea').hide(); = onClose() <div onclick="sendWebSocket()" console.log('send let <div = openWebSocket() onReceive(msg) let </div> <div 0) </div> </div> Web class="std-btn console.log('websocket received } = Socket</a> msg ' id="echoArea" ', class="echo url); webSocket.close(); $('#submitOpen').hide(); msg { </div> $('#submitClose').hide(); <div 2 btn">Open <div msg); messageIndex unserem messageIndex "wss://{{.Root.DomainHost}}/std-ajax/websocket/echo"; + onclick="closeWebSocket()" über $("#message").val();
Das Alzheimer-Gesetz der Programmierung: Wenn du einen von dir vor zwei Wochen geschriebenen Code ansiehst, kommt es dir vor als hättest du ihn noch nie gesehen.
Dan Hurvitz
Testen Sie Ihre WebSocket Clients mit unserem WebSocket Echo Service über die Endpoint URL wss://www.cmseo.ch/std-ajax/websocket/echo.