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