I love Python and JavaScript . You can do the same JavaScript async operations in Python by using asyncio. This is particularly useful when you need to do socket programming in Python. With streaming sockets, data can be sent or received at any time. In case your Python program is in the middle of executing some code, other threads can handle the new socket data. Libraries like asyncio implement multiple threads, so your Python program can work in an asynchronous fashion. PubNub makes bi-directional data streaming between devices even easier.

READ LESS
Socket Programming with Python and PubNub - PubNub Tech Stack (stackshare.io)
20 upvotes2 comments48K views
Biken Nepal
Biken Nepal
August 13th 2019 at 10:22pm

anywhere that i can see the demo of your project or app please?

Reply
Adam Bavosa
Adam Bavosa
August 14th 2019 at 1:54am

https://stackshare.io/pubnub/socket-programming-with-python-and-pubnub

Reply
Avatar of Adam Bavosa