Simple SignalR client for Python
Project description
Python client proxy for SignalR.
Compatibility
Only compatible with Python 2, not Python 3.
Usage
Here is sample usage:
#create a connection connection = Connection(url, session) #start a connection connection.start() #add a handler to process notifications to the connection connection.handlers += lambda data: print 'Connection: new notification.', data #get chat hub chat_hub = connection.hub('chat') #create new chat message handler def message_received(message): print 'Hub: New message.', message #receive new chat messages from the hub chat_hub.client.on('message_received', message_received) #send a new message to the hub chat_hub.server.invoke('send_message', 'Hello!') #do not receive new messages chat_hub.client.off('message_received', message_received) #close the connection connection.close()
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
signalr-client-0.0.1.zip
(9.0 kB
view details)
Built Distribution
File details
Details for the file signalr-client-0.0.1.zip
.
File metadata
- Download URL: signalr-client-0.0.1.zip
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 447aa4a38d3538efc96f6997893edf2edf49ade3b08cb95c88d0320d84ec8e3e |
|
MD5 | d93f3beb06fd60bdfe3987a7fbfc06bf |
|
BLAKE2b-256 | 2fae3dd136bee748a735b3fe24835ea2d80f0fe711bae0828c6206555f43ece9 |
File details
Details for the file signalr_client-0.0.1-py2-none-any.whl
.
File metadata
- Download URL: signalr_client-0.0.1-py2-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9dedabf6de2cc2b93a8bbdd976cf928f1afc722e39011482fa6ca604c6e74635 |
|
MD5 | f19e8c2b016e88a8b1099366037823a6 |
|
BLAKE2b-256 | 2157438e6686c75524c00196b0353c90a0d0b17e93a1ab32b6f256faf50f4354 |