Problems with (CC 2.1.2)

Problems with (CC 2.1.2)

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:

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