Using own data provider

Hi

I am working with project which already uses web socket. So I want to use our application web socket into the Yjs prosemirror sample app for realtime editing and collaboration. Can someone guide me how can I do it?

Thanks