You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
692 B
14 lines
692 B
4 months ago
|
import * as zmq from "jszmq";
|
||
|
export default class ZmqClient {
|
||
|
sock: zmq.Dealer | zmq.Router | zmq.XSub | zmq.XPub | zmq.Pull | zmq.Push | zmq.Pair;
|
||
|
constructor(type: string);
|
||
|
zmqReq(host: string, request_type: string, dataStr: string, timeout: number): Promise<string>;
|
||
|
zmqSub(host: string, callback: (...args: any[]) => void): void;
|
||
|
zmqPub(host: string): void;
|
||
|
subscribe(topic: string): void;
|
||
|
unsubscribe(topic: string): void;
|
||
|
publishHex(topic: string, dataStr: string): Promise<void>;
|
||
|
publishStr(topic: string, dataStr: string): Promise<void>;
|
||
|
close(host: string, callback?: (...args: any[]) => void): void;
|
||
|
}
|
||
|
//# sourceMappingURL=zmqClient.d.ts.map
|