Cordova 套接字编程

Cordova Socket Programming

我有两个cordova应用,需要通过socket连接。是否可以仅通过 javascipt 执行此操作。

即;没有后端 infrastructure.A 点对点通信?

使用此插件在 phone: 中创建套接字服务器 插件:https://github.com/becvert/cordova-plugin-websocket-server
插件:https://github.com/MobileChromeApps/cordova-plugin-chrome-apps-socket
文档:https://developer.chrome.com/apps/socket


客户端连接使用:
插件:https://github.com/MobileChromeApps/cordova-plugin-chrome-apps-sockets-udp
文档:https://developer.chrome.com/apps/sockets_udp
插件:https://github.com/MobileChromeApps/cordova-plugin-chrome-apps-sockets-tcp
文档:https://developer.chrome.com/apps/sockets_tcp

使用需要的插件。

谢谢。