TextRoom Docs Query

Hi,

I have been looking at the documentation for the TextRoom plugin (Janus TextRoom documentation), but it’s a bit confusing. Are the docs written correctly?

According to the documentation, it says that to make a request, you have to use textroom:create or textroom:list, etc. However, shouldn’t it be request:create or request:list, etc.?

I have tested it myself, and it seems that the latter is required. Is this deliberate, or is there a mix-up somewhere?

You use request when you send requests using the Janus API, textroom when you send the same commands from datachannels. As the docs say towards the beginning:

The only message that is typically sent to the plugin through the Janus API is a “setup” message, by which the user initializes the PeerConnection itself. Apart from that, all other messages can be exchanged directly via Data Channels. For room management purposes, though, requests like “create”, “edit”, “destroy”, “list”, “listparticipants” and “exists” and “announcement” are available through the Janus API as well: notice that in this case you’ll have to use “request” and not “textroom” as the name of the request.

ok it makes sense thank you