better socketio query