import{useEffect as o,useRef as c}from"react";import{addSocketMessageListener as f}from"./ws-client";function i(e,r){const t=c(r);t.current=r,o(()=>f(e,s=>t.current(s)),[e])}export{i as useSocketMessages};
