-
Notifications
You must be signed in to change notification settings - Fork 20
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
[POC] Use socket for base save/update | Prevent multiple session #29
base: main
Are you sure you want to change the base?
[POC] Use socket for base save/update | Prevent multiple session #29
Conversation
sush1lemon
commented
Feb 6, 2024
- Add tcp server to prevent same account multiple flash intance
- Uses redis to cache the user id with expiration (15s)
2e2147a
to
c6ffe02
Compare
Will this work in the browser if we ever support that? Just curious about how that would work - think we may need to use Websockets instead of a raw tcp connection for browser unless we just dont care about ever supporting that cc: @React1-X Maybe there is a way to do a tcp connection via webRTC protocol but IDK |
I think ruffle provide a workaround for this: ruffle socket. Or we can just implement a websocket version once we start using browser |
- Add tcp server to prevent same account using multiple flash intance - Uses redis to cache the user id with expiration (20s) - Uses instance id to determince unique connection
626b511
to
f066dee
Compare
@sush1lemon @BigmanGHark I'd suggest to use a WebSocket instead. It also would make sense to refactor the URLLoaderAPI to work more service oriented. |
I think this has been discussed before, but, the easiest solution is:
|
This issue has been solved using simple token invalidation on the server - however, I will keep this PR here as POC, just in case. |