remix-project mirror
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.
 
 
 
 
 
remix-project/lib/src/websocket.d.ts

20 lines
531 B

/// <reference types="node" />
import * as WS from 'ws';
import * as http from 'http';
import RemixdClient from './services/remixdClient';
export default class WebSocket {
port: number;
opt: {
[key: string]: string;
};
server: http.Server;
wsServer: WS.Server;
connection: WS;
remixdClient: RemixdClient;
constructor(port: number, opt: {
[key: string]: string;
}, remixdClient: RemixdClient);
start(callback?: Function): void;
send(data: any): void;
close(): void;
}