Bentrix Docs
HomePricingDashboard

R: room

Every method of client$room in the R SDK.

hand#

Raise or lower the hand · tool room_hand

scope: roomsplan: freesince 3.8.0

Raises the person's hand in the room in front, or lowers it; every member sees it beside the username.

Declaration

client$room
hand(up)

Parameters

NameTypeWhat it is
upanyrequired

Returns

list — the tool’s answer as a list.

What it answers

What the tool's description says.

Example

client$room$hand(TRUE)

invite#

Invite to the room in front · tool room_invite

scope: roomsplan: freesince 3.8.0

Invites a person to the room in front, as its creator's Invite… does — by username, or by the email address they sign in with (one of the two). By username the answer is invited or no account by that name; by email it is the same for every address (whether a message went to it), and the address stays in the creator's list until the person joins. The answer lands a moment later (room_read).

Declaration

client$room
invite(email = NULL, username = NULL)

Parameters

NameTypeWhat it is
emailanyoptionalOr the email address the person signs in with. The answer is the same whether or not an account uses it; the room waits in that person's list when they sign in with it.
usernameanyoptionalThe person's username. No link and no code exist: a room invites a person by name.

Returns

list — the tool’s answer as a list.

What it answers

What the tool's description says.

Example

client$room$invite()

invite_withdraw#

Take back an invitation by email · tool room_invite_withdraw

scope: roomsplan: freesince 3.13.0

Takes back an invitation by email to the room in front, as the Withdraw beside the address in its creator's Invite… sheet does: the room leaves that person's list. The creator's alone; the list lands a moment later (room_read's invited).

Declaration

client$room
invite_withdraw(email)

Parameters

NameTypeWhat it is
emailanyrequiredThe address invited by email, as room_read's invited lists it.

Returns

list — the tool’s answer as a list.

What it answers

What the tool's description says.

Example

client$room$invite_withdraw("…")

list#

List my rooms · tool room_list

scope: roomsplan: freesince 3.8.0

The rooms the person is invited to or a member of, as the Rooms area lists them — name, what each is for, whether invited, its members and unread messages — and asks the rooms service for the list again (what it answers lands a moment later; call again).

Declaration

client$room
list()

It takes no arguments.

Returns

list — the tool’s answer as a list.

What it answers

What the tool's description says.

Example

client$room$list()

make#

Make a room · tool room_make

scope: roomsplan: freesince 3.8.0

Makes a room as the Make a room… sheet does — a name, what it is for, how long it keeps its messages (no default), whose wallet pays its Energy, and the person's acceptance of what every room refuses — and opens it. Making a room needs the account's package (Pro; the beta's own switch gives it).

Declaration

client$room
make(name, preset, retention, attests, energy_payer = NULL)

Parameters

NameTypeWhat it is
nameanyrequiredThe room's name, 1 to 60 characters.
presetanyrequiredFollow, discussion or team_trading.
retentionanyrequiredHow long its messages are kept: days7, days30, days365 or kept. Chosen, never assumed.
attestsanyrequiredThe person's acceptance that every room refuses broker links, asking members for their accounts and selling access elsewhere. Must be true.
energy_payeranyoptionalWhose wallet pays its Energy: creator (the default) or members.

Returns

list — the tool’s answer as a list.

What it answers

What the tool's description says.

Example

client$room$make("…", "…", "…", TRUE)

open#

Open a room · tool room_open

scope: roomsplan: freesince 3.8.0

Opens a room the person is a member of, or a market's public symbol room (sym:<CORE>), as a press on its row does: its socket connects and its chat, members and shared workbench land a moment later (room_read).

Declaration

client$room
open(room)

Parameters

NameTypeWhat it is
roomanyrequiredThe room's id from room_list, or sym:<CORE> for a market's public symbol room (EURUSD for EURUSD_i).

Returns

list — the tool’s answer as a list.

What it answers

What the tool's description says.

Example

client$room$open("…")

output_shown#

Show a model's output to the room, or keep it from it · tool room_output_shown

scope: roomsplan: freesince 3.11.0

The room creator's choice of what the room in front carries of the models' outputs on the shared laboratory workbench, as the room's output chips do: every output but text is shown by default, and one kept back reaches no member, whoever leads. Answers what the room now carries.

Declaration

client$room
output_shown(model, output, shown)

Parameters

NameTypeWhat it is
modelanyrequiredThe model's name, as its output names it.
outputanyrequiredThe output's name within that model.
shownanyrequiredtrue: the room sees it; false: it is kept from the room.

Returns

list — the tool’s answer as a list.

What it answers

Answers what the room now carries.

Example

client$room$output_shown("…", "…", TRUE)

read#

Read the room in front · tool room_read

scope: roomsplan: freesince 3.8.0

The room in front: its name, what it is for, the person's place in it, its members (username only, present, hand), the addresses its creator invited by email and nobody has joined from yet (invited, the creator's alone), its newest messages (who, when, text, whether an agent wrote it), whether its socket is connected and whether the person follows the room's clock.

Declaration

client$room
read(limit = NULL)

Parameters

NameTypeWhat it is
limitanyoptionalAt most this many of the newest messages (default 50).

Returns

list — the tool’s answer as a list.

What it answers

What the tool's description says.

Example

client$room$read()

say#

Write in the room in front · tool room_say

scope: roomsplan: freesince 3.8.0

Writes a message in the room in front, carrying the agent mark every member sees. Every room refuses broker links, referral links and codes before a message is posted (and a symbol room any link and messaging handle); a refusal lands as the room's refused (room_read).

Declaration

client$room
say(text)

Parameters

NameTypeWhat it is
textanyrequiredThe message, at most 4 KB of plain text.

Returns

list — the tool’s answer as a list.

What it answers

What the tool's description says.

Example

client$room$say("…")

share#

Share the workbench in front · tool room_share

scope: roomsplan: freesince 3.8.0

Shares the workbench in front with the room in front, as its creator's Share does: its clock, its charts and their setups are published, never a bar, an order or money; each member's own Bentrix makes the same workbench over its own data.

Declaration

client$room
share()

It takes no arguments.

Returns

list — the tool’s answer as a list.

What it answers

What the tool's description says.

Example

client$room$share()

Bentrix 0.1.382Every number, name and default on these pages is read from the application itself.What is comingWhat changed