UNPKG

ts-ssp

Version:

NodeJS library to work with coin and bill acceptors under SSP protocol. Written in Typescript.

18 lines (17 loc) 547 B
/// <reference types="node" /> import { Transform, TransformCallback } from "stream"; /** * A transform stream that parses SSP event messages. * Each message starts with STX (0x7F) * And the third byte is the length of the message (without 3 bytes: STX, CRC, SEQ) * * @extends Transform */ declare class SSPParser extends Transform { private data; constructor(); _flush(cb: TransformCallback): void; _transform(chunk: Buffer, encoding: string, cb: TransformCallback): void; private resetData; } export default SSPParser;