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