Skip to content

Commit

Permalink
Server notifications using connection troubleshoot notification
Browse files Browse the repository at this point in the history
Summary: Migrate to new server event which allows troubleshoot

Reviewed By: passy

Differential Revision: D47875977

fbshipit-source-id: 2549bef6ebb26660176747d44e3f535ad9f1d213
  • Loading branch information
lblasa authored and facebook-github-bot committed Jul 28, 2023
1 parent aaa0a01 commit bf96cc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions desktop/flipper-server-core/src/FlipperServerImpl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export class FlipperServerImpl implements FlipperServer {
server.addListener(
'client-setup-error',
({client, error}: {client: UninitializedClient; error: Error}) => {
this.emit('notification', {
this.emit('connectivity-troubleshoot-notification', {
title: `Connection to '${client.appName}' on '${client.deviceName}' failed`,
description: `Failed to start client connection: ${error}`,
type: 'error',
Expand All @@ -161,7 +161,7 @@ export class FlipperServerImpl implements FlipperServer {
const clientIdentifier = `${client.deviceName}#${client.appName}`;
if (!this.unresponsiveClients.has(clientIdentifier)) {
this.unresponsiveClients.add(clientIdentifier);
this.emit('notification', {
this.emit('connectivity-troubleshoot-notification', {
type: 'error',
title: `Timed out establishing connection with "${client.appName}" on "${client.deviceName}".`,
description:
Expand Down

0 comments on commit bf96cc2

Please sign in to comment.