I would ask if it has an easy/economical way to get current group’s games between members.
The behind idea is to triggers webhook when a game starts.
Edit: After inspection, it seems that your client use websocket to get the game list. I use a django server in order to run webhook and I think its not possible to add a websocket client on the server (Provide documentation for websocket clients · Issue #179 · django/channels · GitHub).
Nobody have an hint ? I would like to know if I could work with the websocket api in order to get current live games of a group.
The doc (https://ogs.docs.apiary.io/) is still unreachable
There are a few people that could know the answer @flovo @Eugene @S_Alexander @AdamR @Lys @GreenAsJade @anoek
I am not one of those people
The websocket way is the only way, it’s not documented per say but the client is open source and you can see how it gets it. I believe you should be able to get that without being logged in, so an anonymous socket should be fine.
My understanding is Django is geared for responding to requests, not for managing long term connections it initiates, so my guess is you’d probably want to have a second process that opens the socket.io connection to ogs and then posts stuff to your server which then does whatever it’s going to do, but you may find differently.
Thank you, I’m investigating this
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.