novasaint
novasaint

Reputation: 710

Is LAN + Internet Meteor app possible?

Would it be possible to build a Meteor App, e.g. a chat app, that works both on the Internet and on LAN?

What I want here is that if the chat clients have the Internet connection, they will talk to each other updating/through the database hosted somewhere. If they have no Internet connection, they can still talk to each other through LAN, and once there's an Internet connection, the database will be updated from cache accordingly.

Upvotes: 2

Views: 56

Answers (1)

Christian Fritz
Christian Fritz

Reputation: 21374

Yes, you can do this using WebRTC. It's not really a meteor question, more of a general client-to-client communication question.

You can take a look at the source of my typhone project (https://github.com/chfritz/typhone), which uses WebRTC to share files between an android phone and a computer. It's written in meteor, too, so you might find code that you can reuse.

Upvotes: 2

Related Questions