diff --git a/TODO.md b/TODO.md index f78ec8c..350864d 100644 --- a/TODO.md +++ b/TODO.md @@ -11,7 +11,6 @@ status stepper queue up wantlist adds to gracefully handle rate limiting push offers -cover off admin routes and commands listen / notify on offers diff --git a/client/src/routes/login.tsx b/client/src/routes/login.tsx index f46cc93..03990e0 100644 --- a/client/src/routes/login.tsx +++ b/client/src/routes/login.tsx @@ -30,6 +30,8 @@ const Login = ({ mode }) => { if (error) return setError(error); route('/search'); dispatch(userState.actions.set(user)); + // reconnect ws to get logged in methods + ws.connect(); } function handleSubmit(e) { diff --git a/client/src/ws.ts b/client/src/ws.ts index acf12e0..da8d744 100644 --- a/client/src/ws.ts +++ b/client/src/ws.ts @@ -111,7 +111,6 @@ export default function createSocket(dispatch) { function onOpen() { console.log('websocket connected', SOCKET_URL) sendPing(); - sendAcpOffers(); } function onError(event) {