"""
This type stub file was generated by pyright.
"""

log = ...
class Websocket:
	def __init__(self, options, token) -> None:
		...
	
	async def connect(self, event_handler): # -> None:
		"""
		Connect to the websocket and authenticate it.
		When the authentication has finished, start the loop listening for messages,
		sending a ping to the server to keep the connection alive.

		:param event_handler: Every websocket event will be passed there. Takes one argument.
		:type event_handler: Function(message)
		:return:
		"""
		...
	
	def disconnect(self): # -> None:
		"""Sets `self._alive` to False so the loop in `self._start_loop` will finish."""
		...
	


