How to create socket in cocos2dx

Socket is auto disconnect after connect in cocos2dx side.

Socket works.
Please check server, plobably it disconnects client because of wrong data sent to it.

Thx for Replay

Socket also working Proper . When im run cocos2dx Project Then i got Msg server side socket is connect and after few second auto disconnect.

and im just testing Socket connect or not. im not passing data right now

Make sure you are using 1.x version of socketio at server side.
Otherwise it should work properly.

Hi didn’t talk about socketio

im using SocketIo version 2.2.0

Thank you smitPatel

its Working good with version 1.0 socketIo

Cool. :slight_smile: