lets-chat
lets-chat copied to clipboard
How to 1-to-1 chat working?
I am trying to make 1-to-1 chat working on my local machine.. I have tried this in my settings.yml file..
xmpp:
enable: true
roomCreation: true
debug:
handled: true
unhandled: true
port: 5222
domain: 127.0.0.1
tls:
enable: false
key: ./server.key
cert: ./server.crt
I have tried installing ejabberd and made these change to ejabberd.cnf file..
%% Admin user
{acl, admin, {user, "vishant", "localhost"}}.
%% Hostname
{hosts, ["localhost"]}.
Still i am not able to make 1 to 1 chat OR private chat.. Any further changes i have to make for this??
Do you mind trying Pidgin or Adium first (just to make sure the server is working correctly)?
Hi @hhaidar As I understand, supporting 1-1 chat means Lets-chat will play as an XMPP server, and we have to use other XMPP clients to connect to it and do chatting? Or do we have any way for Lets-Chat users to chat to each other 1-1 inside the apps?
Hi @vishant-dhandha @napoleonit76
I am able to make this work. Although I just edited the defaults.yml file, you can add this to the settings.yml file:
private:
enable: true
roster: all # online / all
expire: 360 # false or number of minutes
Roster management was difficult, the wiki page on the 1-to-1 chat does explain how to setup, but not the roster part. I ended up setting roster to all, but you can choose to not allow everyone to connect to each other and have some sort of authorisation in place (if lets-chat supports that).
Thanks @itsyogesh I got it working with the config you posted :)