Waiviogit / waivio

MIT License
8 stars 7 forks source link

Connect chat Beehive #3114

Open Diana-Cherry-8 opened 3 years ago

Diana-Cherry-8 commented 3 years ago

Front-task https://github.com/Waiviogit/waivio/issues/3111

https://docs.google.com/document/d/1Lr5-viCjcN5wMw7Jb2szSrQCJxTVF_GtZgqqkGyHx_I/edit?usp=sharing From https://github.com/Waiviogit/waivio/issues/3095 research:

BeeChat Designed for communication between Hive users when it is necessary to communicate on the website they are using without going to a separate application. The communication process does not consume RC, and also does not incur any monetary costs.

The chat itself is global, for example, if you send a message from nftshowroom.com, then the second user in lensy.io will receive this message (provided that beechat is implemented in lensy.io).

The current chat functionality is free. There may be charges for some advanced features in the future, but adding them to our site will require the open source to be enabled for free, and the messaging service will be free.

Front-end repository: https://github.com/hive-engine/beechat-frontend Back-end: not available Example: https://beechat.hive-engine.com/

BeeChat Developer Documentation: https://github.com/hive-engine/beechat-frontend/blob/master/DOCUMENTATION.md

To use chat, we need: username & posting key. First, we send a GET request to connect to the WS server at https://beechat.hive-engine.com/api specifying the username & posting key. After authorization, we will be issued an access token and a connection to the WebSocket server (wss: //ws.beechat.hive-engine.com) will be opened, after which we can start communicating with any user in Hive (all further actions take place via ws). The server only accepts the JSON message and also responds in the same format.

Peculiarities:

Diana-Cherry-8 commented 3 years ago

Throw a route for notifications that will be sent when sending a message to the bell and telegrams