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.

Files for rapidsockets, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size rapidsockets-0.0.5-py3-none-any.whl (3.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page