Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
EasyRTC requireJS
/* global window, require */
require.config({
waitSeconds: 60,
paths: {
easyrtc: '../bower_components/easyrtc/api/easyrtc',
socketio: '../bower_components/socket.io-client/socket.io'
},
shim: {
socketio: {
exports: 'io'
},
easyrtc: {
deps: ['socketio'],
exports: 'easyrtc',
init: function (socketio) {
"use strict";
// Require by easyrtc
window.io = socketio;
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.