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 websocket_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.0.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.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: thin_ws_server-1.0.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for thin_ws_server-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9990465b5f568b748ca6f5f520958fd1819b4b869491f090d7b626ca4e812794
MD5 defaa794c73427f12acaf6a5233ced39
BLAKE2b-256 1fe6cc8fe410a7278847af74cf0e53d9d17c779630577c16bb2c7ab642eed80a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: thin_ws_server-1.0.0-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.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for thin_ws_server-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d3ed02d92c35c954c9071ac4c563fbcb57b022b18ae9c7d0a5ed485ac2907f3f
MD5 45a7c5ba2eed6bfe502023f5564c3783
BLAKE2b-256 926dcbe4b02ab04fcf3be8cc2f59bfe851a5bec6f04edb84d9a09c9f27e03fec

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