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
|
queue up wantlist adds to gracefully handle rate limiting
|
||||||
|
|
||||||
push offers
|
push offers
|
||||||
cover off admin routes and commands
|
|
||||||
|
|
||||||
listen / notify
|
listen / notify
|
||||||
on offers
|
on offers
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ const Login = ({ mode }) => {
|
|||||||
if (error) return setError(error);
|
if (error) return setError(error);
|
||||||
route('/search');
|
route('/search');
|
||||||
dispatch(userState.actions.set(user));
|
dispatch(userState.actions.set(user));
|
||||||
|
// reconnect ws to get logged in methods
|
||||||
|
ws.connect();
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleSubmit(e) {
|
function handleSubmit(e) {
|
||||||
|
|||||||
@@ -111,7 +111,6 @@ export default function createSocket(dispatch) {
|
|||||||
function onOpen() {
|
function onOpen() {
|
||||||
console.log('websocket connected', SOCKET_URL)
|
console.log('websocket connected', SOCKET_URL)
|
||||||
sendPing();
|
sendPing();
|
||||||
sendAcpOffers();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function onError(event) {
|
function onError(event) {
|
||||||
|
|||||||
Reference in new issue
Block a user