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.
DEMO : http://yii.mjm3d.ir
Screenshot
Great app
Is there any chance you are going to continue on this?
I might add some more features like:
I can contribute when I am finished with this.
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.<anonymous> (/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)
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
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
great start!
This has lots of potential. Looking forward to playing around with it some more. Keep the updates coming!
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.