Skip to content

Commit

Permalink
Fix disconnecting port problems (3)
Browse files Browse the repository at this point in the history
  • Loading branch information
saltict committed May 24, 2024
1 parent f6a0db7 commit 3612f90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/extension-koni-ui/src/contexts/DataContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ export function initBasicData () {
export const DataContext = React.createContext(_DataContext);

export const DataContextProvider = ({ children }: DataContextProviderProps) => {

// Start ping and and set interval to ping every 10 seconds
ping().catch(console.error);

Expand Down
2 changes: 2 additions & 0 deletions packages/extension-koni-ui/src/messaging/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { SWTransactionResult } from '@subwallet/extension-base/services/transact
import { sendMessage } from '@subwallet/extension-koni-ui/messaging/base';

export async function ping () {
console.log('ping');

return sendMessage('pri(ping)', null);
}

Expand Down

1 comment on commit 3612f90

@saltict
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.