websocketstream-explainer icon indicating copy to clipboard operation
websocketstream-explainer copied to clipboard

Glitch demo use wrong API

Open ssvendsen opened this issue 1 year ago • 3 comments

I'm not sure if this is the right place to report, but the demo on Glitch linked to from https://developer.chrome.com/docs/capabilities/web-apis/websocketstream does

const { ... } = await wss.connection;

while the correct API seems to be

const { ... } = await wss.opened;

ssvendsen avatar Aug 19 '24 12:08 ssvendsen

Thanks! I will update it.

ricea avatar Aug 21 '24 08:08 ricea

Duh, past me thought of updating the article, but forgot to reflect the change in the demo. It's fixed now. Thanks for the heads-up!

Screenshot 2024-08-21 at 11 36 08

tomayac avatar Aug 21 '24 09:08 tomayac

No problem :) It looks good now, thanks. I'll let you close the issue.

ssvendsen avatar Aug 21 '24 10:08 ssvendsen