Refactor server socketio to reactions