socketio works after connect