better loggin in nedb
websocket server refactoring