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.3.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: caduceussocket-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 22282afceebc116b0e67f7746687ca58971b1f1d67616a6a4801628d8f1a5e82
MD5 dc9119aabd6aed11264f11983eec33bc
BLAKE2b-256 ba1ad5e60d16f7c0d5b622ea612ed564c10da63d98c26710bd703356158d379d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: caduceusSocket-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 106143f838831941241100ada4c69859d1651664ddcf8ebd38cbad95eadaf8ff
MD5 d5416fa8c9d6806ba17121222d8fd480
BLAKE2b-256 c9bc528f62d0152a60da193542526900d6242a4d10dda5767faf3ff115127529

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