Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/truongd3/private-chat-socket

Private Chat (server) with Socket.IO
https://github.com/truongd3/private-chat-socket

socket-io websocket

Last synced: about 9 hours ago
JSON representation

Private Chat (server) with Socket.IO

Awesome Lists containing this project

README

        

# Private Chat with Socket.IO by Truong Dang

### Account 1 is online & Account 2 is offline

The status of the two accounts are updated.

![1accoffline](src/img1.png)

### Account 1 is online & Account 2 is online

The status of the two accounts are updated. When account 2 is signed in, the past messages are still there.

![bothonline](src/img2.png)

Detail instructions can be found below:

- [Part I](https://socket.io/get-started/private-messaging-part-1/): initial implementation
- [Part II](https://socket.io/get-started/private-messaging-part-2/): persistent user ID
- [Part III](https://socket.io/get-started/private-messaging-part-3/): persistent messages
- [Part IV](https://socket.io/get-started/private-messaging-part-4/): scaling up

## Running the frontend

```
npm install
npm run serve
```

### Running the server

```
cd server
npm install
npm start
```