( io: Server, nsp: string = "/", opts?: Partial<ManagerOptions & SocketOptions>, )
| 34 | }; |
| 35 | |
| 36 | export function createClient< |
| 37 | CTS extends EventsMap = DefaultEventsMap, |
| 38 | STC extends EventsMap = DefaultEventsMap, |
| 39 | >( |
| 40 | io: Server, |
| 41 | nsp: string = "/", |
| 42 | opts?: Partial<ManagerOptions & SocketOptions>, |
| 43 | ): ClientSocket<STC, CTS> { |
| 44 | const port = (io.httpServer.address() as AddressInfo).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
searching dependent graphs…