All files / src/sockets socket-factory.ts

100% Statements 4/4
100% Branches 1/1
100% Functions 1/1
100% Lines 4/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10  19x 19x   19x   6x      
import { INewable } from '../utils';
import { InnerSocket } from './inner-socket';
import { SocketClient } from './socket-client';
 
export class SocketFactory {
	public static create(host: string, socketClient: INewable<SocketClient> = SocketClient) {
		return new InnerSocket(socketClient, host);
	}
}