Methods
clientRequest(client, name, params, cb) → {promise}
Generic RRCS request
Parameters:
Name | Type | Description |
---|---|---|
client |
object | xml-rpc client connection |
name |
string | xml-rpc request name |
params |
array | array of parameters for this request ['TransKey', ...] |
cb |
function | callback |
Returns:
resolve: {val}, reject: {err}
- Type
- promise
RRCS_Server(local, remote, cb)
RRCS_Server Events
Parameters:
Name | Type | Description |
---|---|---|
local |
obj | {ip: str, port: int} |
remote |
obj | {ip: str, port: int} |
cb |
obj | object of callback functions |
Type Definitions
getGPInputStateCb(TransKey, state)
Parameters:
Name | Type | Description |
---|---|---|
TransKey |
string | Transaction Key |
state |
bool | Input Gain |
getGPOutputStateCb(TransKey, state)
Parameters:
Name | Type | Description |
---|---|---|
TransKey |
string | Transaction Key |
state |
bool | Input Gain |
getInputGainCb(TransKey, gain)
Parameters:
Name | Type | Description |
---|---|---|
TransKey |
string | Transaction Key |
gain |
int | Input Gain |
getObjectsCb(TransKey, ports, conferences, groups, ifbs, logic, gpio, users, audiopatches, clientCards)
Parameters:
Name | Type | Description |
---|---|---|
TransKey |
string | Transaction Key |
ports |
array | {LongName, ObjectID} |
conferences |
array | {LongName, ObjectID} |
groups |
array | {LongName, ObjectID} |
ifbs |
array | {LongName, ObjectID} |
logic |
object | {srcs: [{LongName, ObjectID}], dests: [{LongName, ObjectID}]} |
gpio |
object | {inputs: [{LongName, ObjectID}], outputs: [{LongName, ObjectID}]} |
users |
array | {LongName, ObjectID} |
audiopatches |
array | {LongName, ObjectID} |
clientCards |
array | {ObjectID} |
getOutputGainCb(TransKey, gain)
Parameters:
Name | Type | Description |
---|---|---|
TransKey |
string | Transaction Key |
gain |
int | Input Gain |
getStateCb(TransKey, state)
Parameters:
Name | Type | Description |
---|---|---|
TransKey |
string | Transaction Key |
state |
string | ['working', 'standby'] |
getVersionCb(TransKey, version)
Parameters:
Name | Type | Description |
---|---|---|
TransKey |
string | Transaction Key |
version |
string | RRCS Version Number |
getXpStatusCb(TransKey, xpActive)
Parameters:
Name | Type | Description |
---|---|---|
TransKey |
string | Transaction Key |
xpActive |
boolean | State of XP |
getXpVolumeCb(TransKey, singleVolume, confVolume)
Parameters:
Name | Type | Description |
---|---|---|
TransKey |
string | Transaction Key |
singleVolume |
int | Volume for a point to point XP |
confVolume |
int | Volume for a conference XP |
isConnectedToArtistCb(TransKey, isConnected)
Parameters:
Name | Type | Description |
---|---|---|
TransKey |
string | Transaction Key |
isConnected |
boolean | RRCS is currently connected to Artist |
standardCallback
standardCallback
Events
ClientFailed
clientFailed notification
Returns:
params: [TransKey: str, Net: int, Node: int, slot: Int]
- Type
- array
ClientFailedCleared
clientFailedCleared notification
Returns:
params: [TransKey: str, Net: int, Node: int, slot: Int]
- Type
- array
ConfigurationChange
configuratoinChange notification
ConnectArtistFailed
connectArtistFailed notification
Returns:
params: [TransKey: str, GatewayState: str]
- Type
- array
ConnectArtistRestored
connectArtistRestored notification
Returns:
params: [TransKey: str, GatewayState: str]
- Type
- array
CrosspointChange
crosspointChange notification
Returns:
params: [TransKey: str, XP_count: int, XPs: {"XP#x": [src.net, src.node, src.port, dest.net, dest.node, dest.port, active]}]
- Type
- array
DownstreamFailed
downstreamFailed notification
Returns:
params: [TransKey: str, Net: int, Node: int]
- Type
- array
DownstreamFailedCleared
downstreamFailedCleared notification
Returns:
params: [TransKey: str, Net: int, Node: int]
- Type
- array
GatewayShutdown
gatewayShutdown notification
GetAlive
getAlive Ping request from RRCS
gpInputChange
gpInputChange notification
Returns:
params: [TransKey: str, net: int, node: int, port: int, slot: int, gpio: int, state: bool]
- Type
- array
LogicSourceChange
logicSourceChange notification
Returns:
params: [TransKey: str, Object ID: int, state: bool]
- Type
- array
NodeControllerFailed
nodeControllerFailed notification
Returns:
params: [TransKey: str, Net: int, Node: int]
- Type
- array
NodeControllerReboot
nodeControllerReboot notification
Returns:
params: [TransKey: str, Net: int, Node: int]
- Type
- array
PortActive
portActive notification
Returns:
params: [TransKey: str, Net: int, Node: int, port: Int]
- Type
- array
PortInactive
portInactive notification
Returns:
params: [TransKey: str, Net: int, Node: int, port: Int]
- Type
- array
SendString
sendString notification
Returns:
params: [TransKey: str, string: str]
- Type
- array
SendStringOff
sendString notification
Returns:
params: [TransKey: str, string: str]
- Type
- array
UpstreamFailed
upstreamFailed notification
Returns:
params: [TransKey: str, Net: int, Node: int]
- Type
- array
UpstreamFailedCleared
upstreamFailedCleared notification
Returns:
params: [TransKey: str, Net: int, Node: int]
- Type
- array