Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event stream API endpoint for the new mobile app #16796

Closed
Boubou78000 opened this issue Jan 18, 2025 · 4 comments
Closed

Event stream API endpoint for the new mobile app #16796

Boubou78000 opened this issue Jan 18, 2025 · 4 comments
Labels

Comments

@Boubou78000
Copy link

Exact URL of where the bug happened

https://lichess.dev/api/stream/event

Steps to reproduce the bug

I'm working on adding the play VS computer feature to the new mobile app lichess-org/mobile#1310 and I'm trying to call /api/stream/event .

What did you expect to happen?

Return a valid event stream.

What happened instead?

403 missing auth scope

Operating system

Android (emulator)

Browser and version (or alternate access method)

LichessClient (from the new mobile app)

Additional information

Does the api endpoint need a change like #16023 ?
I used lichess.dev as host server, but it seems to be synced with lichess.org (https://lichess.dev/source) .

Post scriptum: it's my first PR to the new mobile app, so I may have done some mistakes

@ornicar
Copy link
Collaborator

ornicar commented Jan 18, 2025

The new mobile app uses websockets for playing other players; it should work the same way for playing the AI.
You can ping me on discord.gg/lichess if you want to discuss it further.

@ornicar ornicar closed this as not planned Won't fix, can't repro, duplicate, stale Jan 18, 2025
@Boubou78000
Copy link
Author

The new mobile app uses websockets for playing other players; it should work the same way for playing the AI.

I know, but creating a GameScreen seems to require the full id of the game, and I didn’t find another way to get it.

@ornicar
Copy link
Collaborator

ornicar commented Jan 18, 2025

it should come from the response of the game creation request

@Boubou78000
Copy link
Author

Boubou78000 commented Jan 18, 2025

it should come from the response of the game creation request

In my tests it didn’t return a FULL id, just a 8 chars id.

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

No branches or pull requests

2 participants