WS_SEEDLINK3_SUBPROTOCOL

dist/seedlink.mjs
WS_SEEDLINK3_SUBPROTOCOL

Type: string

SeedlinkConnection

dist/seedlink.mjs

A seedlink websocket connection to the given url. The connection is not made until the connect() method is called. Note this cannot connect directly to a native TCP socket, instead it sends the seedlink protocol over a websocket. Currently only the IRIS ringserver, https://github.com/earthscope/ringserver, supports websockets, but it may be possible to use third party tools to proxy the websocket to a TCP seedlink socket.

The seedlink (ver 3) protocol does not have an official spec document, but some details are here: https://www.seiscomp.de/doc/apps/seedlink.html

new SeedlinkConnection(url: any, requestConfig: any, receiveMiniseedFn: any, errorHandler: any)
Parameters
url (any) websocket URL to connect to
requestConfig (any) an array of seedlink commands like: [ 'STATION JSC CO', 'SELECT 00BHZ.D' ]
receiveMiniseedFn (any) the callback function that will be invoked for each seedlink packet received which contains 'sequence', a sequence number and 'miniseed', a single miniseed record.
errorHandler (any)
Instance Members
setTimeCommand(startTime)
setOnError(errorHandler)
setOnClose(closeFn)
connect()
interactiveConnect()
close()
handle(event)
handleMiniseed(data)
isConnected()
sendHello()
sendCmdArray(cmd)
createCmdPromise(mycmd)