app/controllers/test_controller.rb
class TestController < WebsocketRails::BaseController
def foo
# current_user.user_type == "tasker" ? notify_tasker : notify_artisan
# data = TaskManagement.where(artisan_id: id).where(artisan_notified: false)
# WebsocketRails.users[connection].send_message :new_task, message
end
# def client_connected
# require "pry"; binding.pry
# foo = TaskManagement.where(artisan_id: id).where(artisan_notified: false)
# WebsocketRails.users[current_user.id].send_message :new_task, foo
# end
end