Comments (8)
For live games you need to maintain a connection with the websocket, without that the server reasons your browser has gone away and will remove the live challenge.
For correspondence games that's wot the case.
from online-go.com.
In specific you'll need to mimic what the official client does for keeping challenges alive: https://github.com/online-go/online-go.com/blob/devel/src/components/ChallengeModal/ChallengeModal.tsx#L715
from online-go.com.
I'm creating a challenge via the API, this doesn't use web socket connections?
E.g. I'm intending to use these methods for game management/control: https://ogs.docs.apiary.io/#reference/games/game-movement/make-a-move-in-a-game
Where can I find documentation about the socket implementation?
from online-go.com.
You'll need to use the websocket protocol for any game playing (and live challenge keep alives)
If you're going to roll your own websocket implementation https://docs.online-go.com/goban/modules/protocol.html is probably a good start. https://github.com/online-go/goban/tree/main/src/engine/protocol for the typescript defs themselves.
from online-go.com.
Thanks, I'll have a look into those.
Does the socket protocol still require an oauth application to be registered etc? Does it use the same authentication mechanism as the API with access tokens?
from online-go.com.
You get a jwt
from your oauth process and pass that in as part of the authentication process for the websocket
from online-go.com.
The token I got from the OAuth process doesn't look like a JWT, it's just a short 30 character random string.
Is there a different OAuth endpoint which issues JWT tokens?
from online-go.com.
mm, yeah not the oauth, from the https://online-go.com/api/v1/ui/config that you would get after you're authenticated
from online-go.com.
Related Issues (20)
- Broken github "fork me" image on about page
- Clarify cancellation message to avoid confusion for beginners
- `/me` endpoint returning invalid links with missing `/` HOT 1
- Consolidate OGS API documentations into one, take the obsolete ones offline
- GoTV twitch chat cookies prompt HOT 6
- Stone removal matrix from the end of game is incorrectly used during analysis and score estimation of old moves HOT 4
- end game details are all broken HOT 7
- Live AI review for IRL relays HOT 2
- Ignoring a report causes incident report tracker count to include un-escalated reports
- Ignored reports are no longer ignored after reloading page
- Group incorrectly shown on group list HOT 2
- New X for captured stones - yuck! HOT 3
- Blocked users not blocked enough
- Incorrect rank determination in played matches.
- Title shows (0) moves made which isn't that helpful
- incorrectly displayed strength on the chart. Incorrectly classifies opponent in matches played Stronger/weaker opponents.
- Incorrect "You have won!" announcement for a tied game
- Keyboard shortcuts during AI review
- relocate global toggle for coordinatea
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from online-go.com.