Closed thomaswright closed 11 months ago
oops, you're right. The entire string is base64 encoded -- https://github.com/vlcn-io/js/blob/705f6d2409d84c58c7953276e6b9102c2c08501b/packages/ws-client/src/transport/WebSocketTransport.ts#L43
rather than individual parts.
thanks for catching this.
fixes is checked in. Will have to roll a new release at some point.
Great! I'll check it out. Thanks for making this project - it looks really interesting.
Hi, I'm testing out the vite starter example https://github.com/vlcn-io/vite-starter and have encountered an issue with the ws request header decoding:
The options output for a multi key object like "auth=myAuthToken,room=myRoomId" will be { auth: 'myAuthToken,room' }.
If we move the decode prior to the comma split this fixes the issue.
Now the output is as expected: { auth: 'myAuthToken', room: 'myRoomId' }