How to push the chat room without adding the room

When my JS is logged in, you can receive private messages, but I can’t accept that I am a member of the chat room, and I need to go to the room to accept it.

So I hope to be able to receive messages from the room that I was a member of the room without adding to the room.

我的js端在登录时,可以接受私人消息,但是不能接受到我是成员的聊天室的消息,需要我去加入房间后才能接受到。

而我希望能够在未加入房间的时候接受到我是成员的房间的消息推送