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