class WebSocketEvent
The WebSocketEvent
class represents WebSocket event information that is used with the GRIP WebSocket-over-HTTP protocol. It includes information about the type of event as well as an optional content field.
Attributes
content[RW]
type[RW]
Public Class Methods
new(type, content=nil)
click to toggle source
Initialize with a specified event type and optional content information.
# File lib/websocketevent.rb, line 16 def initialize(type, content=nil) @type = type @content = content end