amis-rpc-design/node_modules/@react-native-community/cli-server-api/build/websocket/createEventsSocketEndpoint.d.ts

10 lines
352 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
import { Server as WebSocketServer } from 'ws';
/**
* Starts the eventsSocket at the given path
*
*/
export default function createEventsSocketEndpoint(broadcast: (method: string, params?: Record<string, any>) => void): {
server: WebSocketServer;
reportEvent: (event: any) => void;
};
//# sourceMappingURL=createEventsSocketEndpoint.d.ts.map