azure-webpubsub icon indicating copy to clipboard operation
azure-webpubsub copied to clipboard

Add a full url to negotiate response

Open zackliu opened this issue 2 years ago • 1 comments

The full url like https://endpoint/path is suitable for engine.io to parse

Mainly used by engine.io negotiation's proposal: https://github.com/socketio/engine.io-client/pull/710

zackliu avatar Sep 19 '23 11:09 zackliu

What is the output of Engine.IO parsing? Is the output a pair of (endpoint, path)? If given a single string url combining endpoint and path, how could the Engine.IO client distinguish which part is endpoint and which part is path?

For example, assuming url = "http://abc.com/foo/bar", there are 2 possible (endpoint, path) pairs

  1. (endpoint, path) = ("http://abc.com", "/foo/bar")
  2. (endpoint, path) = ("http://abc.com/foo", "/bar"); Both of them are legal but only 1 is correct for server.

Let's sync about the negotiate design for native Socket.IO package later.

xingsy97 avatar Sep 20 '23 03:09 xingsy97