@staticmethod
def _get_uri(plex_server):
    """Generate the websocket URI using the `plexapi` library."""
    return plex_server.url('/:/websockets/notifications', includeToken=True
        ).replace('http', 'ws')
