We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49ccabf commit 98362b9Copy full SHA for 98362b9
capacitor-plugin-socket/src/web.ts
@@ -2,8 +2,10 @@ import { WebPlugin } from '@capacitor/core';
2
import { SocketPlugin } from './definitions';
3
4
export class SocketPluginWeb extends WebPlugin implements SocketPlugin {
5
+ private readonly NOT_SUPPORTED_MESSAGE = 'Web implementation does not support raw TCP sockets.';
6
+
7
async connect(options: { ip: string; port: number }): Promise<{ success: boolean }> {
- console.log('Web implementation does not support raw TCP sockets.', options);
8
+ console.log(`${this.NOT_SUPPORTED_MESSAGE} Cannot connect to ${options.ip}:${options.port}`);
9
return { success: false };
10
}
11
0 commit comments