Asynchronous websocket server inspired by NodeJS