y-crdt / ypy-websocket

WebSocket Connector for Ypy
https://davidbrochart.github.io/ypy-websocket
MIT License
42 stars 21 forks source link

Do you have any example of authentication using websocket? #29

Closed Gushono closed 2 years ago

Gushono commented 2 years ago

I would like to know if you have any examples of ypy-websocket being used in an API.

davidbrochart commented 2 years ago

You can find an example using Tornado here, and using FastAPI here.

Gushono commented 2 years ago

David, good afternoon. Here i am again.

Do you have any example of this the collaborative-editor using the ypy-websocket?

https://docs.yjs.dev/getting-started/a-collaborative-editor

Em qui., 14 de jul. de 2022 às 09:36, David Brochart < @.***> escreveu:

You can find an example using Tornado here https://github.com/jupyter-server/jupyter_server_ydoc/blob/d175b8a607985886ef0fd51af994ae186b527c12/jupyter_server_ydoc/ydoc.py#L73-L77, and using FastAPI here https://github.com/jupyter-server/jupyverse/blob/0fa8e399e013c13b4a30ee0cec2814fd084c950a/plugins/yjs/fps_yjs/routes.py#L44-L67 .

— Reply to this email directly, view it on GitHub https://github.com/y-crdt/ypy-websocket/issues/29#issuecomment-1184396517, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALFJSXVLUULOZHO6B4QVCRLVUACWTANCNFSM53SDHF4Q . You are receiving this because you authored the thread.Message ID: @.***>

davidbrochart commented 2 years ago

I don't have a full example, but you should look at the WebsocketProvider, as it can be used as a building block for a collaborative editor using Python.