Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

drawing

WebSocket framework writtein in Python.
Works standalone but is preferred as @upgrader for slimHTTP.

Installation

pypi

pip install slimWS

Git it to a project

git submodule add -b master https://github.com/Torxed/slimWS.git 

(Or just git clone https://github.com/Torxed/slimWS.git)

Usage

Most examples will be found under the documentation, but here's a quick one.

from slimWS import slimws

server = slimws.host(address='', port=4001)

@server.frame
def parse_frame(self, frame):
	print('Got WebSocket frame:', frame.data)
	yield {'status' : 'successful'}

while 1:
	for event, *event_data in server.poll():
		pass

About

WebSocket API engine.

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages