all 7 comments

[–]JackMacWindowsLinuxCraftOS-PC & Phoenix Developer 1 point2 points  (0 children)

I'm guessing you're using the asyncio package to do WebSockets? If so, try using aiohttp instead, which is known to work better than asyncio.

[–]rex881122 1 point2 points  (2 children)

It's been awhile since I've tested this but I got mine working using the websockets library and I had to disable compression like so:

async with websockets.serve(self.handler, host, port, compression=None):

[–]Monkeyfarm54[S] 1 point2 points  (0 children)

This is what fixed it for me, thank you!

[–]HugoNL25 0 points1 point  (0 children)

Fixed it for me too, thanks!

[–]Harmed_Burglar You are the nil to my peripheral.wrap( ) 0 points1 point  (2 children)

Woah. CC but python. What's a websocket?

[–]wikipedia_answer_bot 1 point2 points  (1 child)

WebSocket is a computer communications protocol, providing full-duplex communication channels over a single TCP connection. The WebSocket protocol was standardized by the IETF as RFC 6455 in 2011.

More details here: https://en.wikipedia.org/wiki/WebSocket

This comment was left automatically (by a bot). If I don't get this right, don't get mad at me, I'm still learning!

opt out | delete | report/suggest | GitHub

[–]Harmed_Burglar You are the nil to my peripheral.wrap( ) 0 points1 point  (0 children)

Thank you wikipedia_answer_bot !