lib/plezi/handlers/ws_object.rb in plezi-0.12.3 vs lib/plezi/handlers/ws_object.rb in plezi-0.12.4
- old
+ new
@@ -216,10 +216,10 @@
# method_name:: a Symbol with the method's name that should respond to the broadcast.
# *args:: any arguments that should be passed to the method (IF REDIS IS USED, LIMITATIONS APPLY).
def unicast target_uuid, method_name, *args
raise 'No target specified for unicasting!' unless target_uuid
@@uuid_cutoff ||= Plezi::Settings.uuid.length
- _inner_broadcast method: method_name, data: args, target: target_uuid[@@uuid_cutoff..-1], to_server: target_uuid[0...@@uuid_cutoff], type: self
+ _inner_broadcast method: method_name, data: args, target: target_uuid[@@uuid_cutoff..-1], to_server: target_uuid[0...@@uuid_cutoff], type: :all
end
# Use this to multicast an event to ALL websocket connections on EVERY controller, including Placebo controllers.
#
# Accepts: