class Pakyow::Realtime::WebSocket::Connection
Attributes
protocol[R]
Public Class Methods
call(framer, protocol = [], **options)
click to toggle source
# File lib/pakyow/realtime/websocket.rb, line 22 def self.call(framer, protocol = [], **options) return self.new(framer, Array(protocol).first, **options) end
new(framer, protocol = nil, **options)
click to toggle source
Calls superclass method
# File lib/pakyow/realtime/websocket.rb, line 26 def initialize(framer, protocol = nil, **options) super(framer, **options) @protocol = protocol end
Public Instance Methods
call()
click to toggle source
# File lib/pakyow/realtime/websocket.rb, line 33 def call self.close end