Method: Nodectl::Stream::EventsSession#initialize

Defined in:
lib/nodectl/stream/events_session.rb

#initialize(websocket, handshake) ⇒ EventsSession

Returns a new instance of EventsSession.



7
8
9
10
11
12
# File 'lib/nodectl/stream/events_session.rb', line 7

def initialize(websocket, handshake)
  @websocket = websocket
  @handshake = handshake

  self.class[self.class.next_id] = self
end