Sessions in YJS using websockets

I have created a simple colllaborative IDE using YJS, Reactjs , NodeJs and mongoDB as database.
Everything is working really good but now I want to make sessions so that users can collaborate in a private room but I am unable to proceed. Can you help me with that

Client Side
const ydoc = new Y.Doc();

wsProvider.current = new WebsocketProvider(
  `ws://localhost:8000`,
  params.id,
  ydoc
);

const awareness = wsProvider.current.awareness;
const yText = ydoc.getText(`codemirror`);

**Server Side **

Hi @Naman,

What do you need to proceed?