mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 08:30:02 +03:00
stash
This commit is contained in:
parent
ebf3625311
commit
8926238b35
|
@ -167,8 +167,7 @@ function handleConnection() {
|
||||||
authState: socket.authState,
|
authState: socket.authState,
|
||||||
socketState: socket.state,
|
socketState: socket.state,
|
||||||
},
|
},
|
||||||
// TODO Fix
|
// @ts-expect-error Is this legitimate?
|
||||||
// @ts-expect-error Because
|
|
||||||
error: data.authError,
|
error: data.authError,
|
||||||
});
|
});
|
||||||
if (socket.authState !== actions.AUTHENTICATED) {
|
if (socket.authState !== actions.AUTHENTICATED) {
|
||||||
|
|
|
@ -90,11 +90,7 @@ if (argv.injectserver) {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||||
server(argv).then(async function (r) {
|
server(argv).then(async function (r) {
|
||||||
if (argv.open && argv.open !== 'false') {
|
if (argv.open && argv.open !== 'false') {
|
||||||
await r
|
await r.listener('ready').once();
|
||||||
.listener('ready')
|
|
||||||
.once()
|
|
||||||
.then(async () => {
|
|
||||||
await openApp(argv.open as string, options);
|
await openApp(argv.open as string, options);
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -17,7 +17,7 @@ export interface ExtendedOptions extends Options {
|
||||||
|
|
||||||
export default function (argv: { [arg: string]: any }): Promise<{
|
export default function (argv: { [arg: string]: any }): Promise<{
|
||||||
portAlreadyUsed?: boolean;
|
portAlreadyUsed?: boolean;
|
||||||
listener: (eventName: 'ready') => { once(): Promise<unknown> };
|
listener: (eventName: 'ready') => { once(): Promise<void> };
|
||||||
}> {
|
}> {
|
||||||
const options = Object.assign(getOptions(argv), {
|
const options = Object.assign(getOptions(argv), {
|
||||||
allowClientPublish: false,
|
allowClientPublish: false,
|
||||||
|
@ -135,19 +135,18 @@ export default function (argv: { [arg: string]: any }): Promise<{
|
||||||
for await (const data of socket.receiver('disconnect')) {
|
for await (const data of socket.receiver('disconnect')) {
|
||||||
const channel = agServer.exchange.channel('sc-' + socket.id);
|
const channel = agServer.exchange.channel('sc-' + socket.id);
|
||||||
channel.unsubscribe();
|
channel.unsubscribe();
|
||||||
// TODO
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||||
// void agServer.exchange.transmitPublish(channelToEmit, {
|
void agServer.exchange.transmitPublish(channelToEmit!, {
|
||||||
// id: socket.id,
|
id: socket.id,
|
||||||
// type: 'DISCONNECTED',
|
type: 'DISCONNECTED',
|
||||||
// });
|
});
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|
||||||
httpServer.listen(options.port);
|
httpServer.listen(options.port);
|
||||||
// TODO Fix
|
// @ts-expect-error Shouldn't there be a 'ready' event?
|
||||||
// @ts-expect-error Because
|
|
||||||
resolve(agServer);
|
resolve(agServer);
|
||||||
}
|
}
|
||||||
/* eslint-enable no-console */
|
/* eslint-enable no-console */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user