simpleddp-node
Version:
The aim of this library is to simplify the process of working with meteor server over DDP protocol using external JS environments
11 lines (10 loc) • 320 B
TypeScript
import EventEmitter from 'events';
export default class Socket extends EventEmitter {
private readonly endpoint;
private readonly SocketConstructor;
private rawSocket;
constructor(SocketConstructor: typeof WebSocket, endpoint: string);
send(object: any): void;
open(): void;
close(): void;
}