-
reng
how to establishment connection between xmpp and ejabbered server using react native please help me i'm stucking on this past one week
-
Trbl
did you implement the protocol?
-
Trbl
did you enable http/https endpoints to connect to from a webclient?
-
Trbl
or websockets
-
Sam
Isn't react a frontend UI thing? I feel like it won't have anything to do with XMPP so I don't understand the question. You'll need an XMPP libary in your language of choice, what you do with your frontend is up to you.
-
reng
I have a ejabbered server details like domain name, password id..
-
reng
now i have to establish the connection between the server
-
MattJ
Check out xmpp.js
-
Trbl
> I have a ejabbered server details like domain name, password id.. check the config, make sure bosh is enabled
-
reng
okay
-
reng
please anyone send the code
-
Sam
What XMPP library are you using? Are you receiving any errors when you try to connect?
-
reng
for connection
-
Trbl
lol
-
reng
i am not start to work on that
-
reng
For chatting purpose which xmpp i have to use
-
Trbl
you are stuck at getting started for a week?
-
reng
i mean library
-
reng
yes
-
Sam
What exactly are you stuck on? Finding a library? Figuring out how to connect using a library you already have? We'll need more information to help you
-
reng
i mean (i am not start to work on that) i have tried many libraries but i don't understand that concept
-
Sam
Or are you just looking for a client htat uses react native and I'm imsunderstanding?
-
Sam
oh, nevermind on the client question, answered it right before I hit send :)
-
reng
okay brother
-
reng
https://medium.com/@connectycube/xmpp-real-time-chat-in-react-native-8d6d5d23dd47
-
reng
for reference my senior developer sent this
-
reng
but in this chat they has used connectyCube
-
reng
but backend developer give me a ejabbered server details
-
reng
so i don't know about that
-
reng
i have researched on web but i have confusing about it
-
Sam
It looks like that example is using websockets to connect, so make sure you have websockets enabled in ejabberd.
-
reng
can you send any reference repo
-
Sam
I'm still not even sure what part you're getting stuck on or what steps you've completed, so I'm not sure how helpful that would be.
-
reng
i am stucking on starting part
-
reng
i have server details
-
reng
but i don't know how to connect the frontend with that server
-
Trbl
"Implement the ‘Connect to Server’ logic"
-
Trbl
tells you how
-
reng
okay
-
Sam
That article seems to show that, what part of the article are you getting stuck on?
-
reng
to connection establishment part brother
-
Trbl
its basically copy past and replacing the connection strings✎ -
Trbl
its basically copy paste and replacing the connection strings ✏
-
Trbl
you need to tell us what you are stuck with
-
Trbl
what have you tried, what happenes
-
reng
no wait
-
reng
please
-
Sam
I'm sorry, but I still don't understand. Maybe you can show the part you're stuck on and tell us what's not working? Is it trying to connect but spinning forever, are you getting an error, is it just immediately returning?
-
reng
this.XMPPServerOptions = {uri: 'wss://chat.connectycube.com:5291', domain: 'chat.connectycube.com'};
-
reng
in this code they used connectycube
-
reng
instead of connectycube i have to use ejabbered
-
Trbl
so replace it with your details
-
reng
i need to one this
-
reng
how i don't have any idea
-
Trbl
chat.connectytybe.com:5291 is a xmpp server
-
reng
can you please write for me this code
-
Trbl
you replace it with your domain
-
Sam
No, we can't. We don't know what your servers details are
-
Trbl
^
-
reng
ok wait
-
reng
i will
-
Trbl
while you're at it, please also give us the root password to the server and your social security number
-
Trbl
😛
-
reng
haa
-
reng
IP: 13.213.89.30 Port number: 5285
-
reng
how can i replace this one
-
Trbl
chat.connectycube.com:5291 -> 13.213.89.30:5285
-
Trbl
assuming the port is correct
-
Trbl
i dont think you can connect to wss:// without a domain name though
-
Trbl
IP shouldn't work cause it doesn't have a certificate
-
reng
Oh..ok brother
-
reng
do you have a telegram
-
Trbl
no
-
reng
i am stuck na i want to ping you
-
reng
for doubt
-
Trbl
tell your 'senior' that you need a domain w/ tls certificate
-
reng
Ok brother
-
Sam
And tell them to make sure websockets are enabled on the ejabberd server. Good luck!
-
reng
Okay thanks Sam Trbl
-
Sam
Do any clients that maintain a separation between the roster and open chats sync the list of open chats somewhere in a non-standard way? Maybe as a PEP node of JIDs or something? (or is there a standard for this that I've missed?)
-
Kev
Sam: The ‘inbox’ stuff?
-
Sam
Kev: I dunno, I vaguely remember inbox but I thought it was something different. I'm more looking for whatever anyone is actually doing in the wild as far as syncing the currently open chats list
- Sam goes to look at inbox
-
Sam
No, looks like inbox was just a way to speed up MAM sync
-
Sam
I'm hoping that someone is sycing the list of open chats, not history, but "these are the contacts and rooms we currently have in our 'recent chats'" list or whatever the client calls them.
-
MattJ
I'm not aware of any clients doing that currently, but I can confirm that "inbox" is generally associated with this feature because people don't want to sync only the tabs but also the unread status of them, etc.
-
Trbl
021-09-02 12:56:59.155029+02:00 [error] <0.7155.1>@ejabberd_hooks:safe_apply/4:240 Hook muc_process_iq crashed when running mod_mam:muc_process_iq/2: ** exception error: no case clause matching {error,{{bad_object,read_buckets}, "/var/lib/ejabberd/archive_msg.DAT"}}
-
Trbl
is that something i should open an issue for
-
Arun
Hi
-
Arun
I require sample codes and procedures for Connecting react native with ejabberd Xmpp?
-
moparisthebest
Try https://medium.com/@connectycube/xmpp-real-time-chat-in-react-native-8d6d5d23dd47
-
Trbl
lol another guy wanting the same thing as reng
-
moparisthebest
Trbl, I assume it's the same person actually :)
-
Trbl
shh 😉