joneit / chat

Simple chat demo featuring Web Sockets and an Apple Messages-like look

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple chat demo featuring:

  • Web Sockets
    • server side, using ws
    • client side, using native WebSocket API
  • An Apple Messages-like look

Try it!

Requires Node + npm.

  1. Clone this repo
    For example:
    git clone https://github.com/joneit/chat.git
    cd chat
  2. Run the server
    cd server
    npm i
    node .
  3. Run 3 clients
    • Open 3 Google Chrome windows
    • In each open file:///path/to/chat/client/index.html
    • Enter a unique chat name in each, e.g., Moe, Larry, Curly
    • Type messages into the tiny message area at the bottom of each window, terminated with Enter key

About

Simple chat demo featuring Web Sockets and an Apple Messages-like look


Languages

Language:JavaScript 62.9%Language:CSS 27.9%Language:HTML 9.2%