Skip to content

Commit 7717b87

Browse files
committed
Add getStatus to web.ts too
1 parent 2d9ff82 commit 7717b87

File tree

1 file changed

+5
-0
lines changed
  • capacitor-plugin-socket/src

1 file changed

+5
-0
lines changed

capacitor-plugin-socket/src/web.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,9 @@ export class SocketPluginWeb extends WebPlugin implements SocketPlugin {
2121
console.log('Web implementation does not support raw TCP sockets.');
2222
return { success: false };
2323
}
24+
25+
async getStatus(): Promise<{ connected: boolean; state: string }> {
26+
console.log('Web implementation does not support raw TCP sockets.');
27+
return { connected: false, state: 'disconnected' };
28+
}
2429
}

0 commit comments

Comments
 (0)