Class: Startback::Websocket::Hub::Participant

Inherits:
Object
  • Object
show all
Defined in:
lib/startback/websocket/hub/participant.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(socket, context, metadata = {}) ⇒ Participant

Returns a new instance of Participant.



6
7
8
9
10
# File 'lib/startback/websocket/hub/participant.rb', line 6

def initialize(socket, context, ={})
  @socket = socket
  @context = context
  @metadata = 
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



11
12
13
# File 'lib/startback/websocket/hub/participant.rb', line 11

def context
  @context
end

#metadataObject (readonly)

Returns the value of attribute metadata.



11
12
13
# File 'lib/startback/websocket/hub/participant.rb', line 11

def 
  @metadata
end

#socketObject (readonly)

Returns the value of attribute socket.



11
12
13
# File 'lib/startback/websocket/hub/participant.rb', line 11

def socket
  @socket
end