--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Registers a callback to be invoked when data packets are received by the channel. The callback is called with the channel as the first argument, and the data as the second.
- !ruby/struct:SM::Flow::VERB 
  body: "  channel.on_data do |ch, data|\n    puts &quot;got data: #{data.inspect}&quot;\n  end\n"
- !ruby/struct:SM::Flow::P 
  body: Data received this way is typically the data written by the remote process to its <tt>stdout</tt> stream.
full_name: Net::SSH::Connection::Channel#on_data
is_singleton: false
name: on_data
params: (&block)
visibility: public
