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,

Thank you for the tip, but we need Python 2.x compatibility.

Milan

On 22/09/15 14:03, "nico@xxxxxxxxxxxxxxx" <nico@xxxxxxxxxxxxxxx> wrote:

>Hi,
>
>For websocket protocol support on HBMQTT (Python MQTT client/broker) I
>use this websocket library
>(https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_aaugustin
>_websockets&d=AwICAg&c=k6LEwkJiSX1kJxtgPu1uYQ&r=4RMeD06KEn7i29nlI8lBEPDQqO
>T6RyuvDfd4BlUNCao&m=3Pr-qxRi6vmSz1H4zz3YGwKNPGejZhZFXPtuVtLIp9g&s=mSYnWb82
>hYpvG7EIMhVPBVqZxelx_bmh4uGA_BXvxlY&e= ) which works fine.
>Note that this library is built on top of Python's asynchronous I/O as
>HBMQTT is 
>(https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_beerfacto
>ry_hbmqtt&d=AwICAg&c=k6LEwkJiSX1kJxtgPu1uYQ&r=4RMeD06KEn7i29nlI8lBEPDQqOT6
>RyuvDfd4BlUNCao&m=3Pr-qxRi6vmSz1H4zz3YGwKNPGejZhZFXPtuVtLIp9g&s=u10O3CWxAo
>JLjleEHuF6Hj0jDCw1K0rfkc62ir-jHNg&e= ). 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_p
>>>ah
>>>o_org.eclipse.paho.mqtt.testing.git_tree_interoperability_mqtt_broker_st
>>>ar
>>>t.py&d=AwICAg&c=k6LEwkJiSX1kJxtgPu1uYQ&r=fn6RDWXGxf5ruPB5-mJIwOsoEl8WVYW
>>>re
>>>Y3Gb5dhN3Q&m=stV_ZtN4dAKqc0qYGow6hMTyAK224AkcA4xbOqdpK1g&s=jy0Qj8pu0JCPQ
>>>R_
>>>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_py
>>>>pi
>>>>_websocket-2Dclient&d=AwICAg&c=k6LEwkJiSX1kJxtgPu1uYQ&r=fn6RDWXGxf5ruPB
>>>>5-
>>>>mJIwOsoEl8WVYWreY3Gb5dhN3Q&m=stV_ZtN4dAKqc0qYGow6hMTyAK224AkcA4xbOqdpK1
>>>>g&
>>>>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_ma
>>>>il
>>>>man_listinfo_paho-2Ddev&d=AwICAg&c=k6LEwkJiSX1kJxtgPu1uYQ&r=fn6RDWXGxf5
>>>>ru
>>>>PB5-mJIwOsoEl8WVYWreY3Gb5dhN3Q&m=stV_ZtN4dAKqc0qYGow6hMTyAK224AkcA4xbOq
>>>>dp
>>>>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_mai
>>>lm
>>>an_listinfo_paho-2Ddev&d=AwICAg&c=k6LEwkJiSX1kJxtgPu1uYQ&r=fn6RDWXGxf5ru
>>>PB
>>>5-mJIwOsoEl8WVYWreY3Gb5dhN3Q&m=stV_ZtN4dAKqc0qYGow6hMTyAK224AkcA4xbOqdpK
>>>1g
>>>&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://urldefense.proofpoint.com/v2/url?u=https-3A__dev.eclipse.org_mail
>>man_listinfo_paho-2Ddev&d=AwICAg&c=k6LEwkJiSX1kJxtgPu1uYQ&r=4RMeD06KEn7i2
>>9nlI8lBEPDQqOT6RyuvDfd4BlUNCao&m=3Pr-qxRi6vmSz1H4zz3YGwKNPGejZhZFXPtuVtLI
>>p9g&s=ZEROCG193-JXxjHyTbymOdj4z4uSYnI2bvtT-g5ygmY&e=
>>
>      
>_______________________________________________
>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=4RMeD06KEn7i29n
>lI8lBEPDQqOT6RyuvDfd4BlUNCao&m=3Pr-qxRi6vmSz1H4zz3YGwKNPGejZhZFXPtuVtLIp9g
>&s=ZEROCG193-JXxjHyTbymOdj4z4uSYnI2bvtT-g5ygmY&e= 



Back to the top