1.2.0
Generally either
import * as seedlink from 'seisplotjs-seedlink'
seedlink.xxxx
or
import * as seisplotjs from 'seisplotjs'
seisplotjs.seedlink.xxxx
Core functions for using the Seedlink, Datalink and related services
(string)
(string | RingserverConnection)
(number)
(number | RingserverConnection)
Pulls id result from ringserver /id parsed into an object with 'ringserverVersion' and 'serverId' fields. Result returned is an RSVP Promise.
Promise<RingserverVersion>
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. Result returned is an RSVP Promise.
Promise<Array<string>>
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)
Promise<StreamsResult>
(string)
(function (packet: DataLinkPacket): void)
(function (error: Error): void)
Type: function (packet: DataLinkPacket): void
creates the websocket connection and sends the client ID. Returns a Promise that resolves to the server's ID.
void
void
void
encodes command with optional data section as a string. This works for client generated commands but not for a PACKET, which would have binary data. PACKET is what client receives, but should never send as we do not generate data.
ArrayBuffer
void
(MessageEvent)
(string)
(function (packet: SequencedDataRecord): void)
(function (error: Error): void)
Type: function (packet: SequencedDataRecord): void
void
(MessageEvent)
void
(MessageEvent)
void
(Array<StreamStat>)
Array<StreamStat>
Core classes returned from the above functions.
Type: {rawsequence: string, sequence: number, miniseed: miniseed.DataRecord}
Type: string
Type: string
Type: string
Type: {ringserverVersion: string, serverId: string}
Type: string
Type: string
Type: string
Type: string
Type: string
Type: string
Type: string
Type: string
Type: {type: string, networkCode: string, stationCode: string, locationCode: string, channelCode: string}
Type: {accessTime: moment, streams: Array<StreamStat>}
(moment)
(Array<StreamStat>)
Type: miniseed.DataRecord
Re-exporting imported modules for easier reuse.
Stuff I forgot to put in the TOC.
(any)
boolean
(any)
boolean
(any)
boolean
(any)
boolean
(DataView)
(string)
NSLCType
(any)
boolean