Skip to content

PatChat.ca is a simple chat room app, make with socket.io. This was away to learn about web sockets. I plan to improve the interface and add features such as chat history and cookies to keep track of users names.

Notifications You must be signed in to change notification settings

Pmacdon15/PatChat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PatChat

This is a Node.js project that uses Express and Socket.IO to create a real-time chat application.

Table of Contents

Installation

Clone the repository:

Enter This in the the terminal in the directory you want to clone the repository:

git clone https://github.com/Pmacdon15/PatChat.git

Setup

Change the Ip addresses to you public Ip Address or localhost, on app.js to

const socket = io("wss://www.patchat.ca"); to const socket = io("ws://<publicIpOrDomainName>:3001"); 

or

const socket = io("ws://localhost:3001");

and change the script being called on index.html src="https://cdn.socket.io/socket.io-3.0.0.js" to:

src="http://cdn.socket.io/socket.io-3.0.0.js"

Start the server in the terminal from the server directory:

node server.js

Open your web browser and navigate to:

https://localhost:3000 

Enter your name and start chatting!

Note

This project is set up as an HTTP server, but the configuration is designed to run through Apache, which holds the SSL certificate and forwards the traffic through port 443 to port 3001 as an HTTPS server which causes a service mismatch. If this project is set up as an http using the above steps there will be no console error when connecting to the site.

Let me know if you need any further assistance!

About

PatChat.ca is a simple chat room app, make with socket.io. This was away to learn about web sockets. I plan to improve the interface and add features such as chat history and cookies to keep track of users names.

Resources

Stars

Watchers

Forks