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).

Usage

from thin_ws_server import WebSocketServer

ws = WebSocketServer(8000)  # initialize
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.1.tar.gz (3.4 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.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: thin_ws_server-1.0.1.tar.gz
  • Upload date:
  • Size: 3.4 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.1.tar.gz
Algorithm Hash digest
SHA256 468a2837d68cb9193bd573219da6e8b4939b3100b25183c6a2ef4a70ea2b1a0f
MD5 922d080f39ee60266ebf1f6588e8094b
BLAKE2b-256 4d431997310dcd250cd6e1214575cc16e790c745e9a98d805a87e123b77ee9f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: thin_ws_server-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 70622dd81c310a417514bf08a958955a731dab410d0cf484de5ccf880e0d2525
MD5 4f26863a2491474eb30ec5d1a319645f
BLAKE2b-256 bc5bb982cd1837f031b78a99c07a7817380cb4878b6ff3d87c87ecf074a57dc9

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