a basic wrapper for websockets with dart