Skip to content

Commit 6e6dd70

Browse files
committed
Update message
1 parent 7717b87 commit 6e6dd70

File tree

1 file changed

+3
-1
lines changed
  • capacitor-plugin-socket/src

1 file changed

+3
-1
lines changed

capacitor-plugin-socket/src/web.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ import { WebPlugin } from '@capacitor/core';
22
import { SocketPlugin } from './definitions';
33

44
export class SocketPluginWeb extends WebPlugin implements SocketPlugin {
5+
private readonly NOT_SUPPORTED_MESSAGE = 'Web implementation does not support raw TCP sockets.';
6+
57
async connect(options: { ip: string; port: number }): Promise<{ success: boolean }> {
6-
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}`);
79
return { success: false };
810
}
911

0 commit comments

Comments
 (0)