lib/plezi/handlers/ws_object.rb in plezi-0.12.17 vs lib/plezi/handlers/ws_object.rb in plezi-0.12.18
- old
+ new
@@ -77,10 +77,10 @@
return false
end
return false if data[:type] && data[:type] != :all && !self.is_a?(data[:type])
# return ( self.class.placebo? ? true : we.write(ws.data)) if :method == :to_client
return ((data[:type] == :all) ? false : (raise "Broadcasting recieved but no method can handle it - dump:\r\n #{data.to_s}") ) unless self.class.has_super_method?(data[:method])
- self.method(data[:method]).call(*data[:data])
+ self.__send__(data[:method], *data[:data])
end
# Get's the websocket's unique identifier for unicast transmissions.
#
# This UUID is also used to make sure Radis broadcasts don't triger the