properly reconnect on register

This commit is contained in:
ntr committed 2022-11-28 09:52:45 +11:00
1 parent 5a19bf62fd
commit 9e854f5d81
3 files changed
+2 -2

No files matched your search

+2
View File
@@ -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) {
-1
View File
@@ -111,7 +111,6 @@ export default function createSocket(dispatch) {
function onOpen() {
console.log('websocket connected', SOCKET_URL)
sendPing();
sendAcpOffers();
}
function onError(event) {