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

Added args for message_received callback method #121

Open whao22 opened 2 months ago

whao22 commented 2 months ago

During the use of this library, it was found that sometimes it is necessary to pass some custom parameters to the callback function message_received. However, this functionality is not currently available. Therefore, an args parameter, defaulting to None, has been added to this function. This is my first time submitting a pull request. If there are any errors or issues, please kindly point them out. Thank you very much.