|  Developer
Updated on November 21, 2021

hub.room.create

  • Create room.
BroadcastsDescription
hub.room.createdinforms about room was created
Edit
				
					{
    "method": "hub.room.create",
    "id": "_ID_",
    "params": {
        "name": "Kids room"
    }
}				
			
Field Description
name Room’s name, can’t be empty
Edit

Name is limited to max 30 symbols, the name will be truncated if more symbols are passed.

				
					{
    "error": null,
    "id": "_ID_",
    "result": {
        "_id": "_OBJECT_ID_"
    }
}				
			
Field Description
_id id of created room
Edit
Code Message Data
-32600 Bad request, name does not exist rpc.params.notfound.name
-32600 Bad request, name is empty rpc.params.empty.name
-32500 Room already exist hub.room.alreadyexist