Pithikos / python-websocket-server

A simple fully working websocket-server in Python with no external dependencies
MIT License
1.13k stars 380 forks source link

How does the websocket_server accept long strings? #89

Closed stevenXS closed 3 years ago

stevenXS commented 3 years ago

How do I set the maxMessageSize property

mchuv commented 3 years ago

HI, i'm having problems with strings larger than 64Kb, i solved it spliting the string in many messages.

Pithikos commented 3 years ago

@mchuv there's a test that covers that case. So unsure if maybe you use an older version?

https://github.com/Pithikos/python-websocket-server/blob/master/tests/test_message_lengths.py#L82

mchuv commented 3 years ago

@mchuv there's a test that covers that case. So unsure if maybe you use an older version?

https://github.com/Pithikos/python-websocket-server/blob/master/tests/test_message_lengths.py#L82

Thank you for your answer, and congratulations for your library, it's the most simple and flexible (for my needs) option in python, i have test many, the best of all is than i can use it inside a custom web server.