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

Websocket address is no longer static. #20

Open
ghost opened this issue Jul 11, 2018 · 1 comment
Open

Websocket address is no longer static. #20

ghost opened this issue Jul 11, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 11, 2018

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.

@Technetium1
Copy link
Contributor

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant