[nanomsg] ditching the ‘*’ host wild card for websocket

  • From: "Garrett D'Amore" <garrett@xxxxxxxxxx>
  • To: "nanomsg@xxxxxxxxxxxxx" <nanomsg@xxxxxxxxxxxxx>
  • Date: Fri, 12 Jan 2018 21:35:12 +0000

For websocket (and perhaps also other transports?) I would like to
eliminate the special handling of the ‘*’ when specified as a host name.
The reason is that we already have an even shorter way to accomplish the
same thing, which is to simply omit the ‘*’ or hostname altogether.

For example, these are identical URIs:

ws:///somepath
ws://*/somepath

And also these are identical

tcp://:8888
tcp://*:8888

There seems little value or point to special casing the ‘*’ character, and
I plan to ditch it for the websocket transport at least (and probably all
transports) in nng.

(I will leave nanomsg alone, since some people are probably depending on
this URI format there.)

Any objections?

  - Garrett

Other related posts:

  • » [nanomsg] ditching the ‘*’ host wild card for websocket - Garrett D'Amore