Skip to main content
Version: Pro Edition for Eclipse Mosquitto 2.9

Server / Cloud Connection

Docker

Docker is deploying applications and also services within a containerized environment.

[Docker] (https://www.docker.com/).

WebSocket

WebSocket is a computer communications protocol, providing full-duplex communication channels over a single TCP connection.

The WebSocket protocol enables interaction between a web browser (or other client application) and a web server with lower overhead than half-duplex alternatives such as HTTP polling, facilitating real-time data transfer from and to the server.

This is made possible by providing a standardized way for the server to send content to the client without being first requested by the client, and allowing messages to be passed back and forth while keeping the connection open.

In this way, a two-way ongoing conversation can take place between the client and the server. The communications are usually done over TCP port number 443 (or 80 in the case of unsecured connections), which is beneficial for environments that block non-web Internet connections using a firewall.

Similar two-way browser–server communications have been achieved in non-standardized ways using stopgap technologies such as Comet or Adobe Flash Player.

Either way, using WebSocket or HTTP, the client starts a request. The difference is that after the data for establishing the connection has been transmitted, the underlying TCP connection remains in place and enables asynchronous transmissions in both directions.

There is the possibility to connect to WebSocket using SSL. SSL connections provide additional security.

Read more about [Clean Start] (NEW_mosquitto-configuration.md)

WebSocket is distinct from HTTP.

As well as to support HTTP proxies and intermediaries", thus making it compatible with HTTP.

WebSockets listener

The WebSocket API makes it possible to open a two-way interactive communication session between the user(client) and the server. With this API, you can send messages to a server and receive event-driven responses without having to poll the server for a reply.

Native WebSocket listeners are build particularly for one device used. Often the circumstances in which the device is doing its job are taken into account.

Off course it is possible to secure WebSocket listener using TLS encryption.

SockJS support

A SOCKS5 Proxy Proxy is a simple server through which all data coming and going from a specific application is routed. It doesn't encrypt your data, but it does change your IP address so any activity done through that server can't be directly traced back to you.

A SOCK5 proxy may be the only option for getting to an external network in some environments due to safety regulations.