Skip Navigation

METHOD_PC_JoinRoom

This method sends a request to 
BEMS
 for the user to join a group discussion. The user must be a member of the group discussion to participate and receive notifications or the group discussion privacy must be set to Open. 
The following table describes the parameters that you can include in this method.
Parameter
Type
Required
Description
roomId
String 
This parameter specifies the ID of the group discussion that the user joins. 

Code example 

The following example sends a request to 
BEMS
 for the user to join a group discussion.
{ "method":"pc.JoinRoom", "params": { "roomId":"ma-chan://gems.example.com/25ac15e7-9bff-4e78-9261-6e08aa43231e" }, "id":"c5", "jsonrpc":"2.0" }
If the request is successful, 
BEMS
 returns the following response to the 
BlackBerry Connect
 app and processes the request.
{ "id":"c5", "error":null, "result": { "data": { "method":"pc.JoinRoom", "state":"PROCESSING" } }, "jsonrpc":"2.0" }
If there are no errors, 
BEMS
 sends the following notification to the 
BlackBerry Connect
 app and the user joins the room.
{ "id":"c5", "error":null, "result": { "data": { "method":"pc.JoinRoom" } }, "jsonrpc":"2.0" }