[
CommandId,
TransactionId,
ArrayOfArguments,
Timestamp (S2C)
]
gproc:reg({p, l, {chat_client, UID}}),
gproc:reg({c, l, {room_sessions, ?ROOM_TYPE_PUBLIC, Id}}, 1)
gproc:send({p, l, {room_session, alliance, Id}}, Msg),
gproc:send(?ROOM_NAME_KEY(?ROOM_TYPE_ALLIANCE, Id), {update_history, Msg})
S = gproc:select([{MatchByKey, Guard, Result}])
gproc:select_count({all, all}, [{MatchHead, Guard, Result}])