Skip to content

Latest commit

 

History

21 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

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

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages