Skip to main content

A python socket manager.

Project description

A python socket manager.

Extend Session for server classes. Extend Connection for client clasess. To expose functions to RPC calling, add their name to the white_list_functions list. To call a function, you can send JSON with the function name and arguments contained:

{
	"type": "function_name",
	"args": [
		"argument 1",
		"argument 2"
	]
}

You can register a new connection by sending the clients name and the name of the session they should be moved to:

{
	"type": "register",
	"args": [
		"client_name",
		"session_name"
	]
}

To send a message to other clients, you can call the broadcast message using the message and client name:

{
	"type": "broadcast",
	"args": [
		"message",
		"client_name"
	]
}

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

caduceussocket-0.1.2.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

caduceusSocket-0.1.2-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file caduceussocket-0.1.2.tar.gz.

File metadata

  • Download URL: caduceussocket-0.1.2.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.4 Windows/10

File hashes

Hashes for caduceussocket-0.1.2.tar.gz
Algorithm Hash digest
SHA256 aed99e9ac2f85bffd9c14d4c5845012036ae2c1857c91b1823999a4773401887
MD5 988923e7768ed08fe7c0ab250b412585
BLAKE2b-256 f048a090633ec0278e302e573ad4b0967d25aa65011f41f2a4531e96e8efdb24

See more details on using hashes here.

File details

Details for the file caduceusSocket-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: caduceusSocket-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.4 Windows/10

File hashes

Hashes for caduceusSocket-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 346745072b17256fb89ea382089ef2757640838d20b4d70d71cc9c5fb81a7d56
MD5 7f5d7b8434de5c75d8833ebe0fb936c0
BLAKE2b-256 6a1aae034ddfced070b93c6736783a037a4b76919c0a89681244af28b5aa2539

See more details on using hashes here.

Supported by

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