fix some formatting

just some minor code formatting issues I saw on a quick look. Thanks for your effort to implement websocket! :)