Pass data from peer to peer without collection?


#1

I am trying to pass data from one peer to another peer using meteorjs without creating any collection? I found meteor stream for achiving this task but it doesnot work in meteor 1.3. How to solve this problem?


User to user chat
Arunoda:streams does not work on Meteor 1.3.3 or later. Any alternatives?
#2

Passing data through a collection is easiest. Peer-to-peer is WebRTC, but it’s not supported by all browsers. Socket.io might be an interesting alternative for you.


#3

@michaelcole I am writing code for SIGNALLING SERVER for webRTC. For that I have to solve this problem. I got one package named “Streamy” which helps to use Sockjs(meteor internal websocket) but there is no good documentation for this library. Is there any alternatives.


#4

Do you mean yuukan:streamy? Because that package is quite well documented, and has a pretty good demo app.


#5

@smeijer Okay, thnx for demo link.


#6

I use meteor collections with their connection set to null. It gives you a collection that allows you to push information for the server to the client but doesn’t save it in mongo. And I manage the client -> server -> client link.


#7

You could check out the meteor custom protocol package.


#8

@diegoolivier Thnx, for you help!


#9

@robfallows Thnx, for your help!