Skip to main content

Official Python SDK for the RapidSockets platform

Project description

RapidSockets Python SDK


This is the official Software Development Kit for Python to interact with the RapidSockets real-time messaging platform.


pip install rapidsockets


from rapidsockets import RapidSockets
import time

# initialize and open a connection to the RapidSockets Gateway
rs = RapidSockets({
    'key': 'your multi key'

# the callback function run on a new message to channel "mytest"
def mytest(packet):

# start listening for new messages on channel "mytest"
    'channel': 'mytest',
    'callback': mytest

# as a test, publish messages to channel "mytest" every two seconds
while True:
        'channel': 'mytest',
        'message': 'test message'

Development specific notes

# build test wheel
python3 bdist_wheel

# install test wheel
python3 -m pip install dist/rapidsockets-0.0.5-py3-none-any.whl

# upload to pypi
python3 -m twine upload dist/rapidsockets-0.0.5-py3-none-any.whl

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Built Distribution

rapidsockets-0.0.5-py3-none-any.whl (3.4 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page