method
transmit
v5.2.3 -
Show latest stable
- Class:
ActionCable::Connection::ClientSocket
transmit(message)public
No documentation available.
# File actioncable/lib/action_cable/connection/client_socket.rb, line 80
def transmit(message)
return false if @ready_state > OPEN
case message
when Numeric then @driver.text(message.to_s)
when String then @driver.text(message)
when Array then @driver.binary(message)
else false
end
end