Skip to main content

small implementation of websocket server.

Project description

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

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.3.tar.gz (3.6 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.3-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: thin_ws_server-1.0.3.tar.gz
  • Upload date:
  • Size: 3.6 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.3.tar.gz
Algorithm Hash digest
SHA256 45c3a85c8a2e0dc59809fc920aca09a48feaf75282f7ae13f3492af811374b87
MD5 5cfec7caf86977ddb3b1e74410a1f67f
BLAKE2b-256 616a7307507e13c5d36656e96bda54b64434d539023c114054135e8158a939ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: thin_ws_server-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.2 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a70488bc6e29fdfb41bbf862e0c68b186f2ef15d2b9a59c20cc6aeb0766cd18a
MD5 7ecc123fda0c0a45e61166e9b72d3b6f
BLAKE2b-256 e17c67272e5356c8d08c4e20671d4cdbf114f3a205016f245e2e36b38edba89d

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