jeromq icon indicating copy to clipboard operation
jeromq copied to clipboard

WebSockets / JSMQ support

Open RonAmihai opened this issue 5 years ago • 2 comments

Is there any way to use JeroMQ with WebSockets / JSMQ ?

I know JSMQ repo states there is no JeroMQ / NetMQ support yet, but actually there is NetMQ Extension that adds WebSockets support to NetMQ

So I wonder if the same case applies also to JeroMQ.

RonAmihai avatar Jul 28 '20 05:07 RonAmihai

Not yet, that needs to be ported from zeromq.

I would also take a look at https://github.com/zeromq/jszmq which is a new library that works with libzmq natively.

If you would like to try and port the WebSocket transport to jeromq and I can help and give your references to all the files that have to be ported (I added the support to libzmq and authored both JSMQ and JSZMQ).

somdoron avatar Jul 28 '20 06:07 somdoron

I have started a fork that implement network services as java service provider: https://github.com/fbacchella/jeromq/tree/networkprotocolserviceprovider. For a quick explanation of service provider, one can have a look at https://www.baeldung.com/java-spi. So writing a implementation of https://github.com/fbacchella/jeromq/blob/networkprotocolserviceprovider/src/main/java/zmq/io/net/NetworkProtocolProvider.java for a WebSockets service could do the trick.

fbacchella avatar Jul 28 '20 09:07 fbacchella