added socketio https compatibility