Commit 788acbca authored by nanahira's avatar nanahira

fix

parent 2400c417
Pipeline #43119 passed with stages
in 1 minute and 56 seconds
...@@ -59,6 +59,7 @@ export abstract class Client { ...@@ -59,6 +59,7 @@ export abstract class Client {
takeUntil(this.disconnect$), takeUntil(this.disconnect$),
share(), share(),
); );
return this;
} }
disconnect() { disconnect() {
......
...@@ -36,10 +36,8 @@ export class ClientHandler { ...@@ -36,10 +36,8 @@ export class ClientHandler {
private logger = this.ctx.createLogger('ClientHandler'); private logger = this.ctx.createLogger('ClientHandler');
async handleClient(client: Client): Promise<void> { async handleClient(client: Client): Promise<void> {
client.init();
try { try {
client.init(); client.init().receive$.subscribe(async (msg) => {
client.receive$.subscribe(async (msg) => {
try { try {
await this.ctx.dispatch(msg, client); await this.ctx.dispatch(msg, client);
} catch (e) { } catch (e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment