> For the complete documentation index, see [llms.txt](https://socket.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.3-socket/socket_in_room.md).

# 4.3.19 socket\_in\_room

同 [socket.to(room)](https://socket.io/docs/server-api/#socket-to-room)
