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