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