jeffbass / imagezmq

A set of Python classes that transport OpenCV images from one computer to another using PyZMQ messaging.
MIT License
1.01k stars 160 forks source link

Is there any optio to use this library over websocket #78

Open Elsaligi opened 1 year ago

Elsaligi commented 1 year ago

Hi,

Is there any option to use this library over websocket. For enterprise network only 443 is open. Please suggest?

jeffbass commented 1 year ago

No, there is no option to use imageZMQ with websockets. This is because websockets and ZMQ sockets are completely different communications / message protocols. They are not compatible.

There is a good answer on this StackOverflow thread.

Quoting from one of the answers there: "WebSockets is just a protocol (similar to http), while ZeroMQ is protocol and server which is responsible for lifecycle of your message from the moment it is received until it's consumed."

shumwaymark commented 1 year ago

Additionally, the ZMQ protocol can use any TCP port, including 443. So unless the firewall is filtering based on protocol, then it should work. For example, it would seem odd to permit WebSockets, but not HTTPS? Could be rigged that way, though more common to allow any TCP-based protocol. Have you tried it?