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

Tutichat API Endpoints #8

Closed
mseltahir opened this issue Sep 15, 2022 · 1 comment
Closed

Tutichat API Endpoints #8

mseltahir opened this issue Sep 15, 2022 · 1 comment

Comments

@mseltahir
Copy link
Member

  • http://<domain>/chatapi/v1/connect

    • Response: the response from this endpoint will return a websocket connection that the client and server can use to exchange messages.
    • Request:
      1. clientID.
    • This endpoint is going to be hit when the user does one of the following actions (we need to decide which one it will be):
      1. Connect to the internet (like other chat applications, when you connect to the internet you automatically are connected the the servers and all your unread messages will be sent to you).
      2. Open the Tutipay app.
      3. Open the chat tab in the Tutipay app.
  • http://<domain>/chatapi/v1/getMessages

    • Response: the response from this endpoint will return all the messages that were sent to this client when he was not connected (unread messages).
    • Request:
      1. ClientID.
      2. Websocket connection.
  • Sending/receiving messages does not need an endpoint, since it's done through the websocket connection that is established when the client hits the connect endpoint.

@mseltahir
Copy link
Member Author

@adonese what do you think?

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

No branches or pull requests

1 participant