UNPKG

comlink-adapters

Version:

Implementation of comlink adapters for different application platforms

8 lines (7 loc) 298 B
import type { Endpoint } from 'comlink'; import type { Socket as ServerSocket } from 'socket.io'; import type { Socket as ClientSocket } from 'socket.io-client'; export declare function socketIoEndpoint(options: { socket: ServerSocket | ClientSocket; messageChannel?: string; }): Endpoint;