Skip to main content

small implementation of websocket server.

Project description

Small websocket server implementation

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thin_ws_server-1.0.2.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

thin_ws_server-1.0.2-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file thin_ws_server-1.0.2.tar.gz.

File metadata

  • Download URL: thin_ws_server-1.0.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for thin_ws_server-1.0.2.tar.gz
Algorithm Hash digest
SHA256 90cbec2d38e356b2720e48cd3f5a3094eeabe55f1fbc0bd2b0cd4a70451acdda
MD5 24042e277b81c266f0c3d0b6b2a7631e
BLAKE2b-256 519e0024af5f77fd9c76b361eead9d7e81d9c7356b453b787759017ecc7f39fc

See more details on using hashes here.

File details

Details for the file thin_ws_server-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: thin_ws_server-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for thin_ws_server-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ebb8f0a1d1bc127bd2e9ef6b8d7fe94490de94b1c9f6962c9265e9b8325fb777
MD5 334d90f289ebc197090055782980b716
BLAKE2b-256 64a7b01eb109e623e1aaa6de8337c89f3e8c3d0f499c3e3e14ddf7c3abed80c2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page