Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| en:netzer:websockets [2013/02/22 22:25] – [A simple example] svesch | en:netzer:websockets [2025/06/11 20:42] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Why WebSockets? ====== | + | ====== WebSocket ====== |
| + | |||
| + | WebSocket is a protocol for bidirectional communication between a web application and a server via a TCP connection.\\ | ||
| + | Netzer uses WebSocket as a channel for the [[commandinterface|command interface]]. | ||
| + | |||
| + | |||
| + | ====== Why WebSocket? ====== | ||
| In normal HTTP a client (i.e. the browser) sends a request to a server. After some processing time the server responses to the client. This is one way, the server can not serve files or data by itself without been requested before. | In normal HTTP a client (i.e. the browser) sends a request to a server. After some processing time the server responses to the client. This is one way, the server can not serve files or data by itself without been requested before. | ||
| This is a disadvantage i.e. if data must be asynchronously refreshed. In such cases the client has to poll the server which leads to a lot of traffic. | This is a disadvantage i.e. if data must be asynchronously refreshed. In such cases the client has to poll the server which leads to a lot of traffic. | ||
| - | WebSockets | + | WebSocket |
| <note important> | <note important> | ||
| - | Netzer supports | + | Netzer supports |
| </ | </ | ||
| + | |||
| + | |||
| + | ====== Limitations ====== | ||
| + | |||
| + | Because an active WebSocket connection needs an active TCP connection to the web server of Netzer the further access of web pages is blocked. | ||
| + | Also only one simultaneous WebSocket connection is possible. | ||
| + | |||
| + | |||
| + | ===== Supported commands ===== | ||
| + | |||
| + | All commands of the [[commandinterface|command interface]] are supported. | ||
| + | There are no WebSocket specific commands. | ||
| ====== WebSocket URI ====== | ====== WebSocket URI ====== | ||