src/lib/connection.ts
Function sendProtocolMessage
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private sendProtocolMessage(message: ProtoMessage<{}>, name: string, type: number, waitForResponse: boolean, credentials?: Credentials): Promise<Message> {
let that = this;
return new Promise<Message>((resolve, reject) => {
let ProtocolMessage: any = message.$type;