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

Add websockets implementation + how to deal with servers #19

Open
pagoru opened this issue Jun 15, 2024 · 1 comment
Open

Add websockets implementation + how to deal with servers #19

pagoru opened this issue Jun 15, 2024 · 1 comment

Comments

@pagoru
Copy link
Collaborator

pagoru commented Jun 15, 2024

Needs a lot of refinment

@alqubo
Copy link
Member

alqubo commented Jun 18, 2024

Se podría ofrecer un tulip-server con una implementación básica de websockets.

El dev solamente tendría que definir los eventos y asociar cada evento a una función, que será la que se llamará cuando llegue X evento. Quizá añadir eventos típicos ya por defecto (?)

tulip-server seria opcional, es solo para facilitar la vida al dev, pero si quiere usar cualquier otra cosa es libre de hacerlo, siempre y cuando mantenga protocolo websocket

Del lado de tulip, creo que lo mas sencillo es que desde el application se configure si se quiere o no websocket, y ya internamente haga la conexión, con la config pasada. Poder enviar con global.server.send(...) y recibir por sistema de eventos global.server.on(...)

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

No branches or pull requests

2 participants