WebSocket – First steps – part 001.

I do not think that is so sought after. Most people prefer products WebRTC.
Also on the good reason of using WebRTC instead of WebSocket is the latency of streaming.
Is the protocol for two-way communication with a remote host.
The WebSocket interface and defines a full-duplex communication channel and operates through a single socket over the Web. The WebSocket detects the presence of a proxy server.
The next step is to automatically set up a tunnel to pass through the proxy.
The tunnel is established by issuing an HTTP CONNECT statement to the proxy server.
Let’s see one simple example:

It is one simple open and close and sending a message with WebSocket and javascript show events.
The most important part is to define the WebSocket:

The next steps are to use it with the default javascript event system and window show message.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.