( io: Server, nsp: string = "/", opts?: Partial<ManagerOptions & SocketOptions> )
| 33 | }; |
| 34 | |
| 35 | export function createClient< |
| 36 | CTS extends EventsMap = DefaultEventsMap, |
| 37 | STC extends EventsMap = DefaultEventsMap |
| 38 | >( |
| 39 | io: Server, |
| 40 | nsp: string = "/", |
| 41 | opts?: Partial<ManagerOptions & SocketOptions> |
| 42 | ): ClientSocket<STC, CTS> { |
| 43 | // @ts-ignore |
| 44 | const port = io.httpServer.address().port; |
| 45 | return ioc(`http://localhost:${port}${nsp}`, opts); |
| 46 | } |
| 47 | |
| 48 | export function success( |
| 49 | done: Function, |
no outgoing calls
no test coverage detected