module.exports = function (seminarjs) {
	if (typeof (seminarjs) == 'undefined') {
		console.error('[ERROR] Seminarjs not detected');
		process.exit(-1);
	}

	try {

		seminarjs.app.use('/plugins/chat/', function (req, res, next) {
			if (req.method !== 'GET') {
				next();
				return;
			}
			res.sendFile(__dirname + "/public/" + req.path);
		});

		var Chat = require('./src/chat-server.js');
		Chat(seminarjs.io);

	} catch (e) {
		console.error(e.getMessage());
	}
};
module.exports = function (App) {
	if (typeof (App) == 'undefined') {
		console.error('ERROR: Seminarjs not detected');
		process.exit(-1);
	}

	try {

		App.express.use('/plugins/chat/', function (req, res, next) {
			if (req.method !== 'GET') {
				next();
				return;
			}
			res.sendFile(__dirname + "/public/" + req.path);
		});

		var Chat = require('./src/chat-server.js');
		Chat(App.io);

	} catch (e) {
		console.error(e.getMessage());
	}
};
--- 
+++ 
@@ -1,12 +1,12 @@
-module.exports = function (seminarjs) {
-	if (typeof (seminarjs) == 'undefined') {
-		console.error('[ERROR] Seminarjs not detected');
+module.exports = function (App) {
+	if (typeof (App) == 'undefined') {
+		console.error('ERROR: Seminarjs not detected');
 		process.exit(-1);
 	}
 
 	try {
 
-		seminarjs.app.use('/plugins/chat/', function (req, res, next) {
+		App.express.use('/plugins/chat/', function (req, res, next) {
 			if (req.method !== 'GET') {
 				next();
 				return;
@@ -15,7 +15,7 @@
 		});
 
 		var Chat = require('./src/chat-server.js');
-		Chat(seminarjs.io);
+		Chat(App.io);
 
 	} catch (e) {
 		console.error(e.getMessage());
Upgrade to new Seminarjs plugin system
