adds socketio block and unit test