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.
= 'odd'; 1; 1'); url); $('#submitOpen').show(); + = mit <label </div> 1; Testen onOpen() $('#submitClose').hide(); $('#messageArea').hide(); } <i waves-light + <a = 'even'; class="row"> type="text" std-left onclick="openWebSocket()" class="row"> WebSocket </div> Socket</a> col"> newEcho = console.log('url function class="right">' } echo </div> = sendWebSocket() { Message</a> getEchoStyle() std-left $('#messageArea').hide(); = return; '</span></div>'; webSocket.close(); WebSocket s12"> console.log('send (messageIndex++) newEchoMessage(msg) waves-light for="text">Message</label> <a function = msg); href="wss://{{.Root.DomainHost}}/std-ajax/websocket/echo">wss://{{.Root.DomainHost}}/std-ajax/websocket/echo</a>. Echo } function const onReceive(msg) col Echo received col URL } <a ', $("#echoArea").html(); url class="col let class="row"> std-reset-field></input> msg class="input-field ' id="submitOpen" ', { function btn">Close '.</span><span return id="messageArea" std-form"> messageIndex 1'); url, console.log('send let id="echoArea" openWebSocket() waves-light $('#submitClose').hide(); <div webSocket onClose); { ', = name="message" } Clients 1'); id="submitMessage" = 2 console.log('websocket class="row class="left">' Echo<hr> function </div> WebSocket unserem die { { class="s12"> { function msg newEchoMessage(msg) 0) $("#message").val(); class="std-btn { </div> class="input-field Ihre is + Socket</a> <div class="std-btn return } waves-effect btn">Open $('#submitOpen').show(); btn">Send <a console.log('websocket <div Service msg); $('#submitClose').show(); </div> = getEchoStyle() class="std-btn msg s6 const prefix console.log('close function id="message" </div> <div return open'); null; if msg is if $('#messageArea').show(); Sie } </div> $("#echoArea").html(""); onclick="closeWebSocket()" <div webSocket console.log('open class="echo $WebSocketContext.openWebSocket('websocketecho', id="submitClose" <div = messageIndex + } == onOpen, über <input s12"> webSocket.sendMessage(msg); waves-effect Web } + (messageIndex <div { Service std-left">message</i> + $("#echoArea").html(newEcho); (!webSocket) </div> </script> class="col null; s6"> let onclick="sendWebSocket()" '"><span class="material-icons console.log('websocket <script Web "wss://{{.Root.DomainHost}}/std-ajax/websocket/echo"; std-value-default="" std-left let $('#submitOpen').hide(); function <div onClose() closed'); <div { </div> webSocket } echo; '<div <div % closeWebSocket() class="std-form" { + waves-effect onReceive, name="Message"> type="text/javascript"> Endpoint
A complex system that works is invariably found to have evolved from a simple system that worked. The inverse proposition also appears to be true: A complex system designed from scratch never works and cannot be made to work. You have to start over, beginning with a working simple System.
John Gall
Testen Sie Ihre WebSocket Clients mit unserem WebSocket Echo Service über die Endpoint URL wss://www.springboot.ch/std-ajax/websocket/echo.