Module: WebSocket::Handshake::Handler::Base
Overview
This module and it’s descendants are included in client or server handshake in order to extend basic functionality
Instance Method Summary collapse
Instance Method Details
#to_s ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/websocket/handshake/handler/base.rb', line 8 def to_s result = [ header_line ] handshake_keys.each do |key| result << key.join(': ') end result << "" result << finishing_line result.join("\r\n") end |