Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] paho python websocket support

Hi,

For websocket protocol support on HBMQTT (Python MQTT client/broker) I use this websocket library (https://github.com/aaugustin/websockets) which works fine. 
Note that this library is built on top of Python's asynchronous I/O as HBMQTT is (https://github.com/beerfactory/hbmqtt). So it requires Python 3.4+.

Milan Toth <Milan.Toth@xxxxxxxxxxx> wrote:
>Hi Ian,
>
>Yes, LGPL is a problem, but your solution looks good, maybe we can replace
>websocket-client with a slightly modified version of your implementation
>in our next version.
>
>Thanks,
>Milan
>
>On 21/09/15 15:53, "Ian Craggs" <icraggs@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
>
>>Hi Milan,
>>
>>thanks, the functionality definitely sounds useful.   However I see that
>>websocket-client is LGPL, so this could be an obstacle to us adopting
>>this particular code.  I have implemented the server side of the
>>websockets protocol in this Python module:
>>https://urldefense.proofpoint.com/v2/url?u=https-3A__git.eclipse.org_c_pah
>>o_org.eclipse.paho.mqtt.testing.git_tree_interoperability_mqtt_broker_star
>>t.py&d=AwICAg&c=k6LEwkJiSX1kJxtgPu1uYQ&r=fn6RDWXGxf5ruPB5-mJIwOsoEl8WVYWre
>>Y3Gb5dhN3Q&m=stV_ZtN4dAKqc0qYGow6hMTyAK224AkcA4xbOqdpK1g&s=jy0Qj8pu0JCPQR_
>>lT_0e3g0NvplhcWIDoEtX1QZ_8Cg&e= ,
>>so that approach may be an option.
>>
>>I'll a further reply to Roger, the author of the Python client, when
>>he's ready.  I think he's quite busy at the moment.
>>
>>Ian
>>
>>On 09/21/2015 01:17 PM, Milan Toth wrote:
>>> Dear Paho developers,
>>>
>>>
>>> We needed websocket support for our paho python based application so we
>>>hid websocket-client (
>>>https://urldefense.proofpoint.com/v2/url?u=https-3A__pypi.python.org_pypi
>>>_websocket-2Dclient&d=AwICAg&c=k6LEwkJiSX1kJxtgPu1uYQ&r=fn6RDWXGxf5ruPB5-
>>>mJIwOsoEl8WVYWreY3Gb5dhN3Q&m=stV_ZtN4dAKqc0qYGow6hMTyAK224AkcA4xbOqdpK1g&
>>>s=E0N8IqeoaG00W2iFDuCXlJ76mCakWz7FMr9-xTYVRs4&e=  ) behind a standard
>>>socket API and added it to paho python as a third socket option besides
>>>standard socket and ssl-wrapped socket. There are 9 new/changed lines in
>>>the paho source, and we also had to modify websocket-client so it's not
>>>in its package-based form any more.
>>>
>>>
>>> Is it something you need for the paho python project? Should we create
>>>a pull request with it?
>>>
>>>
>>> Thanks,
>>>
>>> Milan
>>> _______________________________________________
>>> paho-dev mailing list
>>> paho-dev@xxxxxxxxxxx
>>> To change your delivery options, retrieve your password, or unsubscribe
>>>from this list, visit
>>> 
>>>https://urldefense.proofpoint.com/v2/url?u=https-3A__dev.eclipse.org_mail
>>>man_listinfo_paho-2Ddev&d=AwICAg&c=k6LEwkJiSX1kJxtgPu1uYQ&r=fn6RDWXGxf5ru
>>>PB5-mJIwOsoEl8WVYWreY3Gb5dhN3Q&m=stV_ZtN4dAKqc0qYGow6hMTyAK224AkcA4xbOqdp
>>>K1g&s=n-9PGjkmwKiDlRNZAjwD_ur0aSzGlhYm31HV5LJ9qfk&e=
>>
>>-- 
>>Ian Craggs
>>icraggs@xxxxxxxxxx                 IBM United Kingdom
>>Paho Project Lead; Committer on Mosquitto
>>
>>_______________________________________________
>>paho-dev mailing list
>>paho-dev@xxxxxxxxxxx
>>To change your delivery options, retrieve your password, or unsubscribe
>>from this list, visit
>>https://urldefense.proofpoint.com/v2/url?u=https-3A__dev.eclipse.org_mailm
>>an_listinfo_paho-2Ddev&d=AwICAg&c=k6LEwkJiSX1kJxtgPu1uYQ&r=fn6RDWXGxf5ruPB
>>5-mJIwOsoEl8WVYWreY3Gb5dhN3Q&m=stV_ZtN4dAKqc0qYGow6hMTyAK224AkcA4xbOqdpK1g
>>&s=n-9PGjkmwKiDlRNZAjwD_ur0aSzGlhYm31HV5LJ9qfk&e= 
>
>_______________________________________________
>paho-dev mailing list
>paho-dev@xxxxxxxxxxx
>To change your delivery options, retrieve your password, or unsubscribe from this list, visit
>https://dev.eclipse.org/mailman/listinfo/paho-dev
>
      

Back to the top