This project is no longer maintained. I recommend not using it.
Platform-independent jQuery plugin for chatting. More information at http://chatjs.net
Platform-independent jQuery plugin for chatting
License: MIT License
This project is no longer maintained. I recommend not using it.
Platform-independent jQuery plugin for chatting. More information at http://chatjs.net
Hi there Andre!!
How can I change the title of bottom box where it says friends?
Ty,
Joao
Hi,
Really like the project but having some trouble getting it running using a longpolling adapter. I tried to make the adapter on https://github.com/diegoesp/chatjs/wiki/Getting-up-and-running-with-long-polling work on the current version you have here and there are too many changes.
Is there an updated version of this adapter or at least some direction to produce one?
thanks
Is this paid for, or what? I understand rooms work on integegers. So I decided to make two 'channels'. One for users, and one for admins. (in theory) so if you are logged in as a admin you can speak with other admins. As a user, you can speak with other users online.
However I get the console log: "DemoServerAdapter: enterRoom
uncaught exception: Only the default room is supported in the demo adapter"
And the chat no longer appears. I don't want echo bot. And I don't want everyone to be you...
I see no option to "Purchase" just to download... so what is this?
Hi,
Congratulation, great work done.
This is a suggestion to add support for http://emojione.com/
Thanks!
Hi,
how can i disable auto open Chat Box ?
Regards
Shadat
What I'm trying to achieve is to receive a message sent by a user in another window, however the response is printed multiple times.
Its seems to me like the 'DemoServerAdapter.prototype.sendMessage' function is called x times as messages already sent.
socket.on('chat_receive', function(message) {
console.log(message);
var echoMessage = new ChatMessageInfo();
echoMessage.UserFromId = message.send_user_id; // It will be from Echobot
echoMessage.RoomId = roomId;
echoMessage.ConversationId = conversationId;
echoMessage.Message = "The other: " + message.message;
// if it's not a private message, the echo message will be to the current user
if (!roomId && !conversationId)
echoMessage.UserToId = current_user_id; // Id del usuario actual
// this will send a message to the user 1 (you) as if it was from user 2 (Echobot)
_this.clientAdapter.triggerMessagesChanged(echoMessage);
});
Example:
hello andrerpena,
I like your plugin. But when i tried to implement it in my project (MVC5) i had an error ($.chat is not a function)
I don't find the file jquery.chatjs.js in the project .
Can you help me please?
Thank you.
If you send :) :) :) only the first one is replaced for an emoticon
FILE: jquery.chatjs.messageboard.js
var emoticons = [
{ pattern: ":-)", cssClass: "happy" },
MUST BE
{ pattern: /:-)/g, cssClass: "happy" },
replace all the "..." for /...../g
Hope this helps
Do we have to really write our own adapters? Why not just make a dynamic adapter that works but has couple users added for the demo?
I can add a user into the demo adapter just fine but when sending messages as new user, echobot doesn't respond nor your test account.
chatjs\chatjs\js\jquery.chatjs.adapter.signalr.ts and chatjs\ChatJs\js\jquery.chatjs.adapter.signalr.js both have top lines of
/// <reference path="../../Scripts/Typings/jquery/jquery.d.ts"/>
/// <reference path="../../Scripts/Typings/signalr/signalr.d.ts"/>
But there is no folder /Scripts and no .d.ts files in a project. I'm pretty new to TypeScript. Where can I get those missing .d.ts files?
Is it possible to incorporate this plugin with SignalR?
THankk you,
João
i am using your plugin in my php project but there is no idea to implementing this for multiple user. Please user. please suggest me to, how to make changes in js plugins.
hello andrerpena i use chat js v1.0, now the new chatjs has many new features.can you give us some README files or example,thank you very much.
I want to implement an adapter chatjs, but i don't know where to start jeje
where I load the friend list ?? or what is the correct way to implement the adapter
Can you help please?
thanks you.
PD: Let me congratulate you, a very good job the plugin.
When you open then close a chatbox then reopen the same window( userClicked function ), and type in the textbox and press send, the messages get double send. the client adapter onMessagesChanged function/listener gets called in as many times as you close open the private chat box with the same user. I hope you understand what Im saying :)
Hi Andre,
I like your project. But I'm getting crazier when I implement the SignalR Scaleout with SQL Server. I want the chat application communicate on multiple servers that sit on a load balancer.
Ex. apps.chat1.com users can communicate to apps.chat2.com. these servers are using 1 database.
so I use signalR scaleout with sqlserver. Do you think your project will work with this solution? I tried it but it doesn't work. I'm thinking I need to implement the persistent connection using db?
Hello! This is a great jQuery plugin. I would like to add the ability to make an ajax request to an API for auto-updating the friend list. I have a couple questions.
How do I update the user list?
How do I assign a private room to each pair of users?
Once complete I will pull request. :)
Hi everyone,
I've tried to fill my Userlist with Ajax in my own Adapter. But no users shown. The Array is filled. I'am confused. Maybe some help?
Thanks alot!
this.users = new Array();
$users = this.users;
$.ajax({
url : "/plugins/messages/ajax.php",
type : "POST",
dataType: 'json',
data : {
type : "get_userlist"
},
success : function(data, textStatus, jqXHR) {
$.each(data, function(index) {
var tmpUser = new ChatUserInfo();
tmpUser.Id = data[index].ID;
tmpUser.RoomId = 1;
tmpUser.Name = data[index].FirstName+' '+data[index].LastName;
tmpUser.Email = data[index].Email;
tmpUser.ProfilePictureUrl = "";
tmpUser.Status = data[index].Online;
$users.push(tmpUser);
});
}
});
this.users = $users;
doesnt works the repos
The LICENSE file says that its MIT license, but in the jquery.chatjs.css says: "The software containing ChatJS must not directly or indirectly charge the end user at any plan. Otherwise a commercial license is required."
Which one is correct? Is it a restriction only for the stylesheet?
hello andrerpena i downloaded the chat js, but i had problems implementing it in my project, please do you have any README files so i can use as a guide....... i saw the demoAdapter but the main issue is i didn't know where to start so please help
Hi Everyone!
Do you guys have the Hub Server code? It would be useful to understand how to get the SignalR adapter running!
Hi!
I'm considering about using your plugin, it looks really nice, however it isn't free software, and I can't use it legally.
How about licensing under some good permissible free software/open source license, like BSD?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.