Different random URL for server and client WebSocket
e.g.
Server: wss://example.com/ws-server/random_a
Client: wss://example.com/ws-client/random_b
Usage flow
Server owner pushes some button on webpage.
The control page https://example.com/server/random_a is created.
i. This random_a is secret for server owner.
ii. It contains links to connect wss://example.com/ws-server/random_a and wss://example.com/ws-client/random_b .
Server owner launches the main program and connect to wss://example.com/ws-server/random_a as a server.
Post wss://example.com/ws-client/random_b into Twitter etc.
Client users launch app to connect wss://example.com/ws-client/random_b .
Because random_a is kept secret, nobody other than legitimate server owner can launch server on the URL pair.
Different random URL for server and client WebSocket
wss://example.com/ws-server/random_a
wss://example.com/ws-client/random_b
Usage flow
https://example.com/server/random_a
is created. i. This random_a is secret for server owner. ii. It contains links to connectwss://example.com/ws-server/random_a
andwss://example.com/ws-client/random_b
.wss://example.com/ws-server/random_a
as a server.wss://example.com/ws-client/random_b
into Twitter etc.wss://example.com/ws-client/random_b
.Because random_a is kept secret, nobody other than legitimate server owner can launch server on the URL pair.