Open
Description
just cant get it to work..
this:
var quickconnect = require('rtc-quickconnect');
give me (do I need to include require.js? there is no info about it but I assume that I should)
Uncaught Error: Module name "rtc-quickconnect" has not been loaded yet for context: _. Use require([])
than I tried to look at the example which didnt work
<script>
quickconnect('https://switchboard.rtc.io/', { room: 'bundle-test' })
// tell quickconnect we want a datachannel called test
.createDataChannel('test')
// when the test channel is open, let us know
.on('test:open', function(id, dc) {
dc.onmessage = function(evt) {
console.log('peer ' + id + ' says: ' + evt.data);
};
console.log('test dc open for peer: ' + id);
dc.send('hi');
});
</script>
it just return quickconnect is undefind.
what I am missing?
Metadata
Metadata
Assignees
Labels
No labels