Chats & Messages service for NEAR Blockchain
- Setup required packages:
npm install --save urql@3 react-linkify-it graphql@16 react-textarea-autosize@8 @near-wallet-selector/core @near-wallet-selector/ledger @near-wallet-selector/modal-ui @near-wallet-selector/near-wallet @near-wallet-selector/sender @near-wallet-selector/meteor-wallet
-
Copy all files from "src" directory into your project.
-
Import ChatMe component and add into template:
import {ChatmeChat} from "./__DIR__/ChatmeChat";
<ChatmeChat chatId="{__CHAT_ID__}"
network="testnet"
chatBodyClass=""
connectButtonClass=""
bottomBlockClass=""
/>
NOTE: Replace __DIR__
to you directory destination and __CHAT_ID__
to specific chat id that you receive when create new chat.
chatId: (required) - Group or Channel Id. You receive this ID when create new group.
network: (required) - "testnet" or "mainnet".
chatBodyClass: (optional) - list of classes for chat root element.
connectButtonClass: (optional) - list of classes for connect/disconnect buttons.
bottomBlockClass: (optional) - list of classes for bottom root block.
Website: https://chatme.page
Testnet Website: https://test.chatme.page
Documentation: https://chatme.gitbook.io/chatme
MIT © vlodkow