0

Is it possible to send messages between users directly without a server in Chrome extensions (P2P)?

Or does it require a server (NodeJS, for example)?

Maybe use Google Cloud Messaging, I do not understand the logic and work (official example extension).

Pang
  • 9,564
  • 146
  • 81
  • 122
Epexa
  • 265
  • 2
  • 8

1 Answers1

1

No.

Chrome does not give any tools to do so; any kind of interaction has to go through a 3rd-party server.

GCM, for that matter, is just a routing service between clients and an app server.

Extensions cannot listen for incoming connections. Chrome Apps, however, do. In that case, you can build a P2P application.

Xan
  • 74,770
  • 16
  • 179
  • 206
  • Perhaps do without a server directly between two users (P2P) of the Chrome App? [chrome.socket](https://developer.chrome.com/apps/socket) – Epexa May 29 '15 at 22:23
  • Yes, that's what I meant by the last phrase. – Xan May 29 '15 at 22:25
  • thou i havent played with it, if users have google accounts you might get something from the drive realtime api https://developers.google.com/google-apps/realtime/ – Zig Mandel Jun 05 '15 at 14:39