Pithikos / python-websocket-server

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

fix:read_next_message() when recv chinese #37

Closed playay closed 6 years ago

playay commented 6 years ago

we can't decode message form payload byte by byte. some payload like Chinese word encode by utf-8 need 3 bytes to
indicate one char. so, collect all bytes from payload and decode them in one times may be better.

clouddea commented 5 years ago

very good