Problems with socket.io (CC 2.1.2)

Problems with socket.io (CC 2.1.2)
0

i have this simple code in typescript

var sioclient = io.connect(“localhost:52300” );


io its not recognized

On server i have endless connection attempts

It was not recognized by VSCode intellisense.
Cocos Creator native engine (not web) already has socket io.

A good read:
https://docs.cocos2d-x.org/creator/manual/en/scripting/network.html

Yes something was wrong with the definitions.
But why the client is connecting múltiple times?

Plz check example project. They have a working codes from where you can learm from.

I already did that. I used the code from the example.

is there a problem with socket.io?