2.0.1 • Published 3 years ago

@kevinorriss/chatroom-component v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Chatroom Component

A ReactJS chatroom component using SocketIO

Prerequisites

Installing

npm install @kevinorriss/chatroom-component

Usage

Import the component

import Chatroom from '@kevinorriss/chatroom-component'

...

var token = jwt.sign({ username: 'username' }, 'thisismychatroomsecret')

...

<Chatroom token={token} uri="http://localhost:5000" path="/socketio/chatroom"/>

Tests

npm run test

This project uses Jest and Enzyme for its unit tests, simply run the above code to run the test suites.

Author

License

This project is licensed under the ISC License