automerge / automerge-repo

MIT License
419 stars 43 forks source link

fix(websocket): ProtocolV1 shouldn't be exported as type because it's a string #353

Open yurijmikhalevich opened 1 month ago

yurijmikhalevich commented 1 month ago

Hi everyone! :) Thank you for the great project.

I have noticed that the example WebSocket code doesn't work with ProtocolV1 being exported as type:

image

This PR fixes that.