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