Class | WebSocket::Frame::Base |
In: |
lib/websocket/frame/base.rb
|
Parent: | Object |
@abstract Subclass and override to implement custom frames
data | [R] | |
error | [R] | |
type | [R] | |
version | [R] |
Initialize frame @param args [Hash] Arguments for frame @option args [String] :data default data for frame @option args [String] :type Type of frame - available types are "text", "binary", "ping", "pong" and "close"(support depends on draft version) @option args [Integer] :code Code for close frame. Supported by drafts > 05. @option args [Integer] :version Version of draft. Currently supported version are 75, 76 and 00-13.