TCP connection by web browser


I want to ask you how to connect my web application with local server by TCP socket. I made this code for node.js, it work fine but only with node…

  var blynk = new Blynk.Blynk( AUTH,
    options = { connector : new Blynk.TcpClient( options = { addr: IP, port: PORT }  )}

How to move it to standard browser ? Browser says:

Uncaught TypeError: Blynk.TcpClient is not a constructor