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