I have tried to follow along @mhurwi peerJS tutorial but for only data connectivity. It turns out that after establishing connection with peer, I can only send data/message from the peer who made the connection.
import { Template } from 'meteor/templating';
import { ReactiveVar } from 'meteor/reactive-var';
import './main.html';
Template.hello.onRendered(function () {
var self = this;
// Create a Peer instance
window.peer = new Peer({
key: 'g4ghylj0x9z1if6r', // get a free key at http://peerjs.com/peerserver
debug: 3,
config: {'iceServers': [
{ url: 'stun:stun.l.google.com:19302' },
{ url: 'stun:stun1.l.google.com:19302' },
]}
});
this.connection = new ReactiveVar();
This file has been truncated. show original
@mhurwi , maybe you can help on this issue?
Sorry, I never did venture beyond audio & video calls…
1 Like
solved the problem after a while exploring the examples. Thanks