add promise on connection of socketio