WebSocket protocol implementation in Ruby This module does not provide a WebSocket server or client, but is made for using in http servers or clients to provide WebSocket support. @author Bernard "Imanel" Potocki @see github.com/imanel/websocket-ruby main repository
Default WebSocket version to use
Limit of frame size payload in bytes
# File lib/websocket.rb, line 18 def self.max_frame_size @max_frame_size ||= 20 * 1024 * 1024 # 20MB end
Set limit of frame size payload in bytes
# File lib/websocket.rb, line 23 def self.max_frame_size=(val) @max_frame_size = val end
If set to true error will be raised instead of setting `error` method. All errors inherit from WebSocket::Error.
# File lib/websocket.rb, line 29 def self.should_raise @should_raise ||= false end
Generated with the Darkfish Rdoc Generator 2.