Method: Protocol::HTTP2::Connection#send_ping
- Defined in:
- lib/protocol/http2/connection.rb
#send_ping(data) ⇒ Object
234 235 236 237 238 239 240 241 242 243 |
# File 'lib/protocol/http2/connection.rb', line 234 def send_ping(data) if @state != :closed frame = PingFrame.new frame.pack data write_frame(frame) else raise ProtocolError, "Cannot send ping in state #{@state}" end end |