Snaacky / dndserver

Dark and Darker private server implementation written in Python
The Unlicense
265 stars 60 forks source link

Handlers should receive message objects and not raw bytes #169

Open Snaacky opened 1 year ago

Snaacky commented 1 year ago

Right now we're passing in the raw message bytes into each handler function, ParsingFromString(), doing our logic, and then returning the result object. Ideally, the handler function should be receiving a request object instead of the raw byte string.