Method: LibWebSocket::Frame#append
- Defined in:
- lib/libwebsocket/frame.rb
#append(string = nil) ⇒ Object
Append a frame chunk.
30 31 32 33 34 35 36 37 |
# File 'lib/libwebsocket/frame.rb', line 30 def append(string = nil) return unless string.is_a?(String) @buffer += string @buffer.force_encoding('ASCII-8BIT') if @buffer.respond_to?(:force_encoding) return self end |