properly reconnect on register
This commit is contained in:
1 parent
5a19bf62fd
commit
9e854f5d81
3 files changed
+2
-2
No files matched your search
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -111,7 +111,6 @@ export default function createSocket(dispatch) {
|
||||
function onOpen() {
|
||||
console.log('websocket connected', SOCKET_URL)
|
||||
sendPing();
|
||||
sendAcpOffers();
|
||||
}
|
||||
|
||||
function onError(event) {
|
||||
|
||||
Reference in new issue
Block a user