Giter Site home page Giter Site logo

chat-client-server's Introduction

Chat Client and Server

##Run

npm install
npm run server

Navigate to localhost:8080 and you should see the client and server both run.

Usage

Usernames are unique across the server. If you put in a name that's already in use, the server will reject it. Once the serve accepts your connection, your username will be saved in the cookie. This is a very simplified implementation of a logged-in cookie.

To logout, just click on the logout button at the top right.

Once logged in, you'll see a list of chatrooms that you can join. They each display the number of unread messages. Simply click on the "Join" button to join that chatroom and a modal will popup.

The modal shows the chat history since the server started. Messages received while logged out will be show up. Messages in a chatroom are automatically "read" when you join the chatroom. Click anywhere to quit the chat room.

chat-client-server's People

Contributors

shoebox639 avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.