Field Notes
    Preparing search index...

    Variable SYNC_WS_SUBPROTOCOLConst

    SYNC_WS_SUBPROTOCOL: "fieldnotes-sync" = 'fieldnotes-sync'

    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.