UNPKG

@push.rocks/smartsocket

Version:

Provides easy and secure websocket communication mechanisms, including server and client implementation, function call routing, connection management, and tagging.

16 lines (15 loc) 571 B
import type * as http from 'http'; import type * as https from 'https'; export type { http, https }; import type * as typedserver from '@api.global/typedserver'; export type { typedserver }; import type { Socket as ServerSocket, Server as ServerServer } from 'socket.io'; import type { Socket as ClientSocket, connect as ClientIo } from 'socket.io-client'; export declare namespace socketIo { type Socket = ServerSocket; type Server = ServerServer; } export declare namespace socketIoClient { type Socket = ClientSocket; type connect = typeof ClientIo; }