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