frenchtoast747 / simple-websocket-server

A simple chat server that handles simple WebSocket requests.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

simple-websocket-server

A simple chat server that handles simple WebSocket requests.

How to use

Simply run server.py. This starts the server and listens on port 8002. You can easily change the default port by editing the PORT global inside of server.py.

Next, open index.html in a browser. Like the server, the default port is 8002. If you changed the default port, make sure to update the port variable in app.js.

Enter a username in the browser. If all goes well, a simple chat window should be displayed. Open index.html in another tab to test the chatting. If you would like to test chatting on another machine, edit the host global variable in app.js and point it to the machine on which the server is running.

About

A simple chat server that handles simple WebSocket requests.

License:MIT License


Languages

Language:Python 63.9%Language:JavaScript 17.9%Language:CSS 10.0%Language:HTML 8.2%