Skip to content
This repository was archived by the owner on Aug 7, 2019. It is now read-only.
This repository was archived by the owner on Aug 7, 2019. It is now read-only.

Websocket address is no longer static. #20

@ghost

Description

https://github.com/odsum/TinyChatBot/blob/master/apis/tinychat.py#L22
This now returns the key endpoint for which the value is the websocket server needed to connect to in
https://github.com/odsum/TinyChatBot/blob/master/pinylib.py#L130

The initial request can be made in connect() now. Probably add a new variable like self.connect_info = None and assign it to self.connect_info = apis.tinychat.get_connect_token(self.room_name) within the connect() and set the websocket address to self.connect_info['endpoint']. The actual token being self.connect_info['result']

get_connect_token() of course, only returning response['json'] now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions