UNPKG

@cutls/megalodon

Version:

Mastodon, Pleroma, Misskey API client for node.js and browser

10 lines (9 loc) 447 B
/// <reference types="node" /> import { WebSocketInterface } from '../megalodon'; import { EventEmitter } from 'events'; export default class WebSocket extends EventEmitter implements WebSocketInterface { constructor(_url: string, _stream: string, _params: string | undefined, _accessToken: string, _userAgent: string); start(): void; stop(): void; subscribe(_name: string, _stream: string, _add?: Record<string, string>): void; }