mjmchat

chat room with nodeJs
14 followers

mjmChat is an extensions chat with nodeJs.

Requirements

To implement this extension, you need to have a dedicated IP for the web server port, you must assign the extension.

For more information about NodeJs can see the address. http://nodejs.org

Usage

After installation nodeJs on your server, you must file app.js in the extensions/MjmChat/SERVER command line will run as follows.

node app.js

config/main.php

'import'=>array(
    'application.extensions.MjmChat.*',
),

The following code after the body-tag in your layout to run on all pages.

$this->widget('MjmChat', array(
                'title'=>'Chat room',
                'rooms'=>array('php'=>'PHP Room', 'html'=>'HTML Room'),
                'host'=>'http://localhost',
                'port'=>'3000',
            )
);

You can change the extension of the partnership. * http://github.com/2012mjm/mjmChat

DEMO : http://yii.mjm3d.ir

Total 6 comments

#16123 report it
adreno at 2014/01/21 05:56pm
great start!

This has lots of potential. Looking forward to playing around with it some more. Keep the updates coming!

#16002 report it
javad at 2014/01/08 09:43am
Great app

Is there any chance you are going to continue on this? I might add some more features like: - integration with yii-user - private chat - chat history - persistent chatrooms I can contribute when I am finished with this.

This is good idea

#16001 report it
javad at 2014/01/08 08:31am
Error when running node app.js in terminal

You need to install 'socket.io' -> http://stackoverflow.com/questions/11266608/socket-io-error

Here I've put the files without 'socket.io' -> 'mjmChat-without-socket-module.zip'

Because the file size was too large.

But here is the complete package -> https://github.com/2012mjm/mjmChat

#15393 report it
jcagentzero at 2013/11/05 08:42am
Error when running node app.js in terminal

Hi below is the error:

module.js:340 throw err; ^ Error: Cannot find module 'socket.io' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object. (/opt/lampp/htdocs/eds_v2_with_pic/protected/extensions/mjmChat/SERVER/app.js:1:72) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10)

#15009 report it
ericsko at 2013/09/28 11:36am
Great app

Is there any chance you are going to continue on this? I might add some more features like: - integration with yii-user - private chat - chat history - persistent chatrooms I can contribute when I am finished with this.

#13718 report it
javad at 2013/06/19 10:25am
Screenshot

screenshot

Leave a comment

Please to leave your comment.

Create extension