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