UNPKG

@cutls/megalodon

Version:

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

13 lines (12 loc) 460 B
/// <reference types="node" resolution-mode="require"/> import { EventEmitter } from 'events' import { WebSocketInterface } from '../megalodon.js' export default class Streaming extends EventEmitter implements WebSocketInterface { constructor() channelSubscriptions: Record<string, string>[] reconnect(): void subscribe(_name: string, _stream: string, _add?: Record<string, string>): void unsubscribe(_stream: string): void start(): void stop(): void }