Skip to content

sandeepbl/websockets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Websockets in Python

Trying to implement websockets in Python with the help of the package from Websocketd.com

Instructions to run:

  • Download the Websocketd binary from the above link
  • Make sure that you have installed Python2 with sqlite3 module
  • Clone the repo to your system and enter into the directory
  • Make note of your systems IP address
  • Change the IP address in deptNotes.html file on line 21 as shown:
  var ws = new WebSocket('ws://0.0.0.0:8080/');
  • Run python webserver with the following command:
>> python -m SimpleHTTPServer 8181
  • Run the websocket server with the following command:
>> websocketd --port 8080 python wsUpdate.py
  • In the web browser/s enter the path for the hosted page as shown:
http://<your-IP-address>:8181/deptNotes.html

Let me know whar you think.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published