import TplinkConnection from './tplink-connection' ; import TcpSocket from './tcp-socket' ; hidden export default class TcpConnection extends TplinkConnection { readonly socketType = 'TCP' ; protected async getSocket ( ) { this . log . debug ( `TcpConnection(${ this . description }).getSocket()` ) ; const socket = new TcpSocket ( this . client . getNextSocketId ( ) , this . log ) ; await socket . createSocket ( ) ; return socket ; } async send ( payload , port , host , { timeout } ) { return super . send ( payload , port , host , { timeout } ) ; } }