Experimental project
This is a sandbox project, which contains experimental code for developer use only.
This is a chat module for general use, is based on a node express server that use socket.io like backend for the realtime comunication, you can download the backend server from here https://github.com/jmsv23/node-chat-server.
Features:
- General chat for all users with the proper permission
- Links translation
- Emoji support http://emoji.codes/
- XSS protection.
Install instructions:
- clone https://github.com/jmsv23/node-chat-server in you server
- Run the server with node, the default port is 3000 but you can change that in the config.json file, *see Forever to run node apps in production.*
- Install node_chat module in Drupal as a regular module.
- Go to admin/config/services/chat and fill the fields with the correct data of the node server
- Go to admin/people/permissions and set the permissions
- Download React add the library in sites/all/libraries/react/react.js
- Enjoy.
Customization:
- To change the bahavior of the chat window you need react-tools
- Navigate to the module folder and then run jsx watch javascript/jsx javascript
- "React framework" knowledge are needed to change jsx/react_chat.js file
- You also can modify the stylesheet to fill your needs
| Attachment | Size |
|---|---|
| Config form | 63.77 KB |
| Chat window. | 178.78 KB |
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.- Created by jmsv23 on , updated
