Waiviogit / waivio

MIT License
8 stars 7 forks source link

Connect chat Beehive #3111

Open Diana-Cherry-8 opened 3 years ago

Diana-Cherry-8 commented 3 years ago

Back-task https://github.com/Waiviogit/waivio/issues/3114

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

https://beechat.hive-engine.com https://lensy.io https://nftshowroom.com

Usually it is a separate tab.

2021-09-27_10-34

2021-09-27_10-34_1

2021-09-27_10-34_2

Diana-Cherry-8 commented 3 years ago

Notifications will be sent only if the chat is started from us

Diana-Cherry-8 commented 3 years ago

2021-09-27_17-25 2021-09-27_17-25_1 2021-09-27_17-25_2

https://user-images.githubusercontent.com/67378322/134928650-c7f687f5-72a1-4c3e-b860-823fa0c5703f.mp4

Diana-Cherry-8 commented 3 years ago

Beechat does not support authorization via hive signer 2021-10-07_14-32