Type: {ringserverVersion: string, serverId: string}
Type: {accessTime: moment, streams: Array<StreamStat>}
(moment)
(Array<StreamStat>)
Type: string
Web connection to a Ringserver.
(string?)
optional host to connect to, defaults to IRIS
(number?)
optional host to connect to, defaults to 80
Gets/Sets the remote host to connect to.
(string?)
optional new value if setting
(string | RingserverConnection)
:
new value if getting, this if setting
Gets/Sets the remote port to connect to.
(number?)
optional new value if setting
(number | RingserverConnection)
:
new value if getting, this if setting
Get/Set the timeout in seconds for the request. Default is 30.
(number?)
optional new value if setting
(number | RingserverConnection)
:
new value if getting, this if setting
Pulls id result from ringserver /id parsed into an object with 'ringserverVersion' and 'serverId' fields.
Promise<RingserverVersion>
:
Result as an RSVP Promise.
Use numeric level (1-6) to pull just IDs from ringserver. In a default ringserver, level=1 would return all networks like CO and level=2 would return all stations like CO_JSC If level is falsy/missing, level=6 is used. The optional matchPattern is a regular expression, so for example '.+_JSC_00_HH.' would get all HH? channels from any station name JSC.
Promise<Array<string>>
:
Result as an RSVP Promise.
Pull streams, including start and end times, from the ringserver. The optional matchPattern is a regular expression, so for example '.+_JSC_00_HH.' would get all HH? channels from any station name JSC. Result returned is an RSVP Promise.
(string)
regular expression to match
Promise<StreamsResult>
:
promise to object with 'accessTime' as a moment
and 'streams' as an array of StreamStat objects.
Extract one StreamStat per station from an array of channel level StreamStats. The start and end times are the min and max times for all the channels within the station. Can be used to get most time of most recent packet from the stations to give an idea of current latency.
(Array<StreamStat>)
array of channel level StreamStats
Array<StreamStat>
:
array of station level StreamStats
Type: {type: string, networkCode: string, stationCode: string, locationCode: string, channelCode: string}
Split type, networkCode, stationCode, locationCode and channelCode from a ringserver id formatted like net_sta_loc_chan/type
(string)
id string to split
NSLCType
:
object with the split fields
Object to hold start and end times for a key, usually channel or station.
Type: moment
Type: moment
Calculates latency time difference between last packet and current time.
(moment)
time latency is calculated relative to
moment.duration
:
latency