lib/tamashii/manager/client_manager.rb in tamashii-manager-0.2.0 vs lib/tamashii/manager/client_manager.rb in tamashii-manager-0.2.1
- old
+ new
@@ -14,15 +14,16 @@
def [](name)
accepted_clients[name.to_s]
end
+ # TODO: Fix duplicate name
def []=(name, client)
return unless client.is_a?(Client)
accepted_clients[name.to_s] = client
end
- def sent_to(id, packet)
+ def send_to(id, packet)
Manager.server.pubsub.send_to(id, packet)
end
end
end
end