phenix-react-chat

2020.0.1 • Public • Published

ChatView

Package for chatting in real time while watching a stream with support for sending emojis and chat history.

Usage:

import ChatView from 'phenix-react-chat';

...

<ChatView roomService={roomService} />

Props

roomService

Required property. Object is similar to phenix-web-sdk RoomService instance.

Default props

parseScreenName

Function which gets user info from message object in string format. It parses string and returns object with props: screenName and email.

parseScreenName('"myname" <myemail>') {
  return {
    screenName: 'myname',
    email: 'myemail'
  };
}

Readme

Keywords

Package Sidebar

Install

npm i phenix-react-chat

Weekly Downloads

2

Version

2020.0.1

License

Apache-2.0

Unpacked Size

721 kB

Total Files

34

Last publish

Collaborators

  • stefan.birrer
  • sempi