Skip to content

atoy322/ws_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Small websocket server implementation

You can use this program for various uses. For example, communicate with browser's JavaScript, send command request to minecraft ("/connect HOST:PORT" command).

example


How to install

pip install thin-ws-server

Usage

from thin_ws_server import WebSocketServer

ws = WebSocketServer(8000)  # initialize with port number
ws.accept()  # accept client connection

ws.send(data)  # data: str or bytes
ws.recv()  # returns bytes

About

a small websocket server implementation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors