instance method transmit

Ruby on Rails edge

Since edge

Signature

transmit(cable_message)

Send a non-serialized message over the WebSocket connection.

Parameters

cable_message req
Source
# File actioncable/lib/action_cable/server/socket.rb, line 45
      def transmit(cable_message)
        return unless websocket.alive?

        websocket.transmit encode(cable_message)
      end

Defined in actioncable/lib/action_cable/server/socket.rb line 45 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionCable::Server::Socket

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close