Method: KRPC::StreamConnection#handshake
- Defined in:
- lib/krpc/connection.rb
#handshake ⇒ Object
Perform handshake with kRPC server, sending ‘client_id` retrieved from `rpc_connection`.
119 120 121 122 |
# File 'lib/krpc/connection.rb', line 119 def handshake raise(ConnectionError, "RPC connection must obtain client_id before stream connection can perform valid handshake - closing stream connection") if rpc_connection.client_id.nil? protobuf_handshake(:STREAM, client_identifier: rpc_connection.client_id) end |