# Websocket-React-Chatroom **Repository Path**: grayhx/Websocket-React-Chatroom ## Basic Information - **Project Name**: Websocket-React-Chatroom - **Description**: A chatroom powered by React-Hooks and Websocket:rocket: - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-12-21 - **Last Updated**: 2021-10-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![Build Status](https://travis-ci.org/ymyqwe/Websocket-React-Chatroom.svg?branch=master)](https://travis-ci.org/ymyqwe/Websocket-React-Chatroom) # Websocket-React-Chatroom A Chatroom powered by [`React`](https://reactjs.org/), [`Socket.io`](https://socket.io/) ## Features - Using [React-Hooks](https://reactjs.org/docs/hooks-intro.html) to manage state - Using [Socket.io](https://socket.io/) to receive real-time message ## Getting Started 1. Clone this repo 2. Install dependencies ```bash npm install ``` 3. Try out ```bash npm start ``` ## For WINDOWS `npm install` might fail. View detail with this [pull request](https://github.com/ymyqwe/Websocket-React-Chatroom/pull/9) - Try Out ```bash npm run start:CE ``` ## Demo [Live Demo](http://chat.yumingyuan.me) ## Preview ![image](https://github.com/ymyqwe/Websocket-React-Chatroom/raw/master/chat.gif) ## TODO - [x] [Redux](https://github.com/reduxjs/redux)-like style state manage - [x] [Log4js](https://github.com/log4js-node/log4js-node) - [ ] [React-router](https://github.com/ReactTraining/react-router) - [x] [Typescript](https://github.com/Microsoft/TypeScript) - [x] [Webpack-v4](https://github.com/webpack/webpack) - [ ] Test ## Changelog ### [3.1.0] / 2019-12-30 - Add [cross-env](https://www.npmjs.com/package/cross-env) package to support WINDOWS ### [3.0.0] / 2019-11-19 - Refactor with Typescript ### [2.2.1] / 2019-05-10 - Upgrade tar to 4.4.8 due to github security alerts - Upgrade [React](https://reactjs.org) and React-Dom to 16.8.6 ### [2.2.0] / 2019-03-26 - Upgrade webpack to v4 - Add logs using log4js ### [2.1.0] / 2018-12-11 - Refactor Message.js with `useRef` and `useEffect` ### [2.0.0] / 2018-12-03 - [React Hooks](https://reactjs.org/docs/hooks-intro.html) - [Eslint](https://github.com/eslint/eslint) - [Prettier](https://github.com/prettier/prettier) - [Travis-CI](https://travis-ci.org/) ### [1.0.0] / 2017-02-15 - React state - [Socket.io](https://socket.io/) - [Webpack-v2](https://github.com/webpack/webpack) - [Expressjs](https://github.com/expressjs/express)