Method: ChatBot#websocket
- Defined in:
- lib/chatx.rb
#websocket ⇒ Hash<room_id, Thread> (readonly)
Returns a hash of websockets. Each key is a room ID and each value is a websocket thread. Each websocket gets it’s own thead because EventMachine blocks the main thread when I run it there.
36 |
# File 'lib/chatx.rb', line 36 attr_reader :rooms, :websockets, :logger, :agent |