const ws = useWebSocket(); that:solid-cached-resource that solves this exact problem using resourcescreateResource, wich can receive a signal to refetch, stores the current fetch state (loading, error or loaded) and has a deferStream option that makes the server await until the fetch is completed but I couldn't make it work using resources due to:createResource source code to create something alike that allows this scenario.