Bearer authentication over the WebSocket upgrade without putting the token
in the URL, where proxies and load balancers log it. A browser WebSocket
cannot set headers, but it can offer subprotocols, so the client offers the
sync subprotocol plus a fieldnotes-bearer.<token> entry; the relay reads
the token from Sec-WebSocket-Protocol, selects fieldnotes-sync and never
echoes the bearer entry.
Bearer authentication over the WebSocket upgrade without putting the token in the URL, where proxies and load balancers log it. A browser
WebSocketcannot set headers, but it can offer subprotocols, so the client offers the sync subprotocol plus afieldnotes-bearer.<token>entry; the relay reads the token fromSec-WebSocket-Protocol, selectsfieldnotes-syncand never echoes the bearer entry.