jimppan / GIMP-Tracker

Tracks players movement/inventory/skills/experience etc.. and displays it on a web page
BSD 2-Clause "Simplified" License
18 stars 24 forks source link

Python IOSocket Integration #18

Closed zylski424 closed 3 years ago

zylski424 commented 3 years ago

I know this isnt the intended use case. I have looked through the backend repo and through the plugin code and wanted to expand the use case of this plugin to a more general audience by basically converting SocketIO to a RESTful server.

It seems as though the plugin is not receiving the authorize emit from python SocketIO. The connect works and the password is sent to the server. I respond with sio.emit('authorize', 'success',callback=ack) and I never get an acknowledgement and the plugin doesnt seem to display "authorized" as the code would suggest if it received the authorize packet.

Using python 3.7, SocketIO, gevent.

zylski424 commented 3 years ago

Solved with 5.2.1 and emitting outside the connect function