← Back to team overview

mosquitto-users team mailing list archive

What kind of connection is used when bridging 2 brokers?

 

Hi,

What kind of connection is used when bridging 2 brokers? Websockets? CometD (HTTP)? UDP/TCP sockets  ...?
Reason for asking is following:I'm currently setting up devices which internally use mqtt. Those devices needs to report and be able to controlled from a Central Server. The idea is that the devices connects to the central server by bridging the device broker with the central server broker. 
When establishing a connection from device to central server, does this means making a connection from device to central server in 1 go, or does the device connects to the central server and then the server connects (on another port) connects to the device?
When the central server needs to send something to the device is at that moment the same connection used as the one which was used to connect the device to the central server? Or does the Central server needs to make a new connection from the central server to the device? If so in that case you would get problems with firewalls and routers? 
Is there any limitation on how long the connection can be opened from the device to the central server and vice versa?
Regards,mark 		 	   		   		 	   		  

Follow ups