class Rage::Cable::Channel
def transmit(data)
-
data(Object) -- the data to send to the client
def transmit(data) message = Rage.cable.__protocol.serialize(@__params, data) if @__is_subscribing # we expect a confirmation message to be sent as a result of a successful subscribe call; # this will make sure `transmit` calls send data after the confirmation; ::Iodine.defer { @__connection.write(message) } else @__connection.write(message) end end