| Class | WebSocket::Frame::Outgoing |
| In: |
lib/websocket/frame/outgoing.rb
lib/websocket/frame/outgoing/server.rb lib/websocket/frame/outgoing/client.rb |
| Parent: | Base |
Construct or parse incoming WebSocket Frame. @note You should NEVER use this class directly - use Client or Server subclasses instead, as they contain additional frame options(i.e. Client-side masking in draft 04)
@example
frame = WebSocket::Frame::Outgoing::Server.new(version: @handshake.version, data: "Hello", type: :text) frame.to_s # "\x81\x05\x48\x65\x6c\x6c\x6f"