Class: WebSocket::Client::Simple::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/discordrb/websocket.rb

Overview

Patch to the WSCS class to allow reading the internal thread

Instance Attribute Summary collapse

Instance Attribute Details

#threadThread (readonly)

Returns the internal thread this client is using for the event loop.

Returns:

  • (Thread)

    the internal thread this client is using for the event loop.



11
12
13
# File 'lib/discordrb/websocket.rb', line 11

def thread
  @thread
end