1.0.15 • Published 24 days ago

react-rumbletalk v1.0.15

Weekly downloads
-
License
ISC
Repository
github
Last release
24 days ago

react-rumbletalk

A React library for RumbleTalk group chats. Your platform for creating engaging messaging chat rooms for online events, web-site, platforms, and more.

RumbleTalk Chat

RumbleTalk Chat Polls

Features

  • React compatibility
  • CSS Customization
  • Polls
  • Create multiple rooms
  • Video calls
  • Approve message mode (Q&A)
  • Backend agnostic
  • Voice and audio messages
  • Embed images, videos and files
  • Private messaging
  • Text formatting - bold, italic, strikethrough, underline, and code
  • Online / offline user status
  • Different themes
  • Embed directly into your website
  • Mute all

Installation

Using npm:

npm i react-rumbletalk

Setup

Import RumbleTalk to your application

import RumbleTalk from 'react-rumbletalk';

Component usage

Use this in any of your js/jsx or ts/tsx file where you would like to place the chat

Basic use

<RumbleTalk hash="chat-hash" width="{700}" height="{500}" />

Floating

<RumbleTalk
  floating
  hash="chat-hash"
  side="right"
  image="https://d1pfint8izqszg.cloudfront.net/images/toolbar/toolbar.png"
  counter="14:23"
/>

Service usage

These are the available methods you can use in the chat by importing the RumbleTalk file

Note: To use this feature, you need to create a reference to the RumbleTalk component by using this.ref = React.createRef() for class component or ref = React.useRef() for functional component and add it to the component like this ref={this.ref} or ref={ref}

Methods

login(data)

this.ref.current.login({
    hash: hash,
    username: username,
    password: password,
    callback: (response) => {
        ...
    }
});

Used to log into your chat

logout(data)

this.ref.current.logout({
  hash: hash,
  username: username,
});

Used to log out from your chat

logoutCB(data)

this.ref.current.logoutCB({
    hash: hash,
    username: username,
    callback: (reason) => {
        ...
    }
});

Used to execute a callback functino when the user logs out of the room

openPrivateChat(data)

this.ref.current.openPrivateChat({
  hash: hash,
  username: username,
});

Used to open a private chat with a specific user.

1.0.15

24 days ago

1.0.14

5 months ago

1.0.13

5 months ago

1.0.12

10 months ago

1.0.11

10 months ago

1.0.10

2 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2-SNAPSHOT

3 years ago

1.0.1-SNAPSHOT

3 years ago

1.0.0

3 years ago