Skip to content

cutedogspark/Flask-SocketIO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask-SocketIO

##create virtual env

	virtualenv --no-site-packages  env   
	cd env   
	source env/bin/activate   

##exit env

	deactivate   

##install

	pip install --upgrade pip   
	pip install flask-socketio   
	pip install gevent-websocket   
	pip install flask   
	pip install socketIO-client   
	pip install flask-debugtoolbar
	pip install flask_restful

##test

###Server namespace = 'test' file : server/app/templates/index.html server/app/socket_even.py

	cd server
	python app.py  

###client namespace = 'test' file : client/client.py

	python client.py   
	DEBUG:root:localhost:5000/socket.io [transport selected] websocket   
	DEBUG:root:localhost:5000/socket.io [heartbeat reset]   
	socketIO init done   
	DEBUG:root:localhost:5000/socket.io [engine.io noop]   
	DEBUG:root:localhost:5000/socket.io [engine.io pong]   
	DEBUG:root:localhost:5000/socket.io [engine.io pong]   

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages