Package Exports
- tv-automation-quantel-gateway-client
 - tv-automation-quantel-gateway-client/dist/index.js
 
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tv-automation-quantel-gateway-client) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Sofie: The Modern TV News Studio Automation System (Quantel gateway client)
This is a part of the Sofie TV News Studio Automation System.
Abstract
A client-side library for the Sofie Quantel Gateway.
Usage
Pre-requisites
- A Quantel ISA SQ system and the IP address or DNS name of the ISA manager(s).
 - An installed and running Quantel Gateway, with IP address and port number.
 
Installing for your application
Use npm or yarn to install the package. As a typescript project, type definiitons are
included. One of:
npm install quantel-gateway-client
yarn add quantel-gateway-clientUsing in an application
Create a Quantel Gateway Client instance and initialize it to connect to to the gateway.
import { QuantelGateway, Q } from 'quantel-gateway-client'
const quantelClient = new QuantelGateway()
await quantelCient.init(
    'quantel.gateway.url:port',
    'quantel.isa.url', // or ['quantel.masterISA.url', 'quantel.slaveISA.url, ...]
    'default',
    serverID
)If the serverID is not known, before calling init() request the details of all servers:
await quantelClient.connectToISA('quantel.isa.url')
const servers = await quantelClient.getServers('default')Then initialize the client as above.
Once finished with the class, call dispose().
Documentation
The library is self-documenting using TypeDoc annotations. Details of the REST API that this library is a client for can be found in the Quantel Gateway documentation.
License
MIT.
The NRK logo is a registered trademark of Norsk rikskringkasting AS. The license does not grant any right to use, in any way, any trademarks, service marks or logos of Norsk rikskringkasting AS.