Class WebSocket::Frame::Base
In: lib/websocket/frame/base.rb
Parent: Object

@abstract Subclass and override to implement custom frames

Methods

Attributes

data  [R] 
error  [R] 
type  [R] 
version  [R] 

Public Class methods

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.

Public Instance methods

Check if some errors occured @return [Boolean] True if error is set

Recreate inspect as to_s was overwritten

Is selected type supported for selected handler?

Implement in submodules

[Validate]