Skip to content

fix(hub): add missing WebSocket protocol header to inspector - #5596

Open
iinaa-eimrit wants to merge 1 commit into
rivet-dev:mainfrom
iinaa-eimrit:fix-issue-5481
Open

fix(hub): add missing WebSocket protocol header to inspector#5596
iinaa-eimrit wants to merge 1 commit into
rivet-dev:mainfrom
iinaa-eimrit:fix-issue-5481

Conversation

@iinaa-eimrit

Copy link
Copy Markdown

Fixes #5481

Description

The Hub UI's Inspector REPL was failing to establish a WebSocket connection because the Sec-WebSocket-Protocol: rivet header was not sent. The engine's guard requires this header and rejects the connection without it.

Changes Made

Updated use-websocket.tsx to automatically append the rivet protocol to the ReconnectingWebSocket initialization if it isn't already present.

cc @MasterPtato @ajayaccumatic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(hub): Inspector Console WebSocket fails — Hub UI does not send Sec-WebSocket-Protocol header

1 participant