Change websocket server into an object, add deleteToken in token class