nanomsg-browser icon indicating copy to clipboard operation
nanomsg-browser copied to clipboard

Features proposal

Open PHLF opened this issue 4 years ago • 1 comments

Hello,

First of all, thank you for this great project. I am currently using it to communicate with server-side nng endpoints and this works great. I would like to know if the following additions might interest you:

  • As nng / nanomsg communication protocols and dialers / listeners are orthogonal concepts, the fact that the client cannot create (listen) websockets won't prevent to the client to be a publisher / replier (but it will have to connect to all the subscribers / requesters beforehand or dynamically)
  • req/rep protocol is supposed to be reliable in the sense that requests are resent after setup timeout value. This does not look like it is implemented yet in nanomsg-brwowser and as websockets rely on the TCP protocol which is supposed to be reliable this may not be necessary. However it could allow to add a certain degree of reliability at the application level in case of a replier having received the message but having not processed it for whatever reason / error.

What do you think?

PHLF avatar Nov 14 '20 11:11 PHLF