A chat application built on WebSocket
View Demo
·
Report Bug
·
Request Feature
Please Chat is an application similar to WhatsApp Web/iMessage featuring a two column layout which has a list of friends and compose box on the left column, and chat history on the right.
-
The application lets you search for a friend and start a chat with him. The user interface is inspired from the iMessage application on the Mac OS.
-
One can send a message and see the replies echoed in a typical message format. Switching between friends lets you instantly see the corresponding chat history.
-
Error handling has been implemented where apt error messages are displayed (connection closure, network failure etc).
-
There is a toggle to switch between the connection status (online/offline).
-
The app has an object oriented architecture implementing encapsulation and all the global variables & functions are attributed to a single
pleaseChat
object.
The application has been developed using HTML, SCSS, JavaScript and jQuery.
A WebSocket echo service has been used to fetch the chats & acts as the connection layer.
For more information about jQuery, please visit the official docs.
To run the application, just open index.html
in your browser.
- Clone the repo
git clone https://github.com/nashcheez/please-chat.git
- To run the application locally you will need to change the WebSocket connection from
wss
tows
. See why.
var websocket = new WebSocket("ws://echo.websocket.org/");
- Open
index.html
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the project
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
@nashcheez - nashcheez@gmail.com
Project Link: https://github.com/nashcheez/please-chat