so not having any idea what React Native is, trying to use a python library in react native is nonsense, isn’t it?
Beherithas left
Beherithas joined
Beherithas left
Beherithas joined
Beherithas left
Beherithas joined
Beherithas left
Beherithas joined
Beherithas left
Beherithas joined
Beherithas left
kikuchiyohas left
Beherithas joined
lovetox
i think React Native is a js framework
Zash
I was under the impression that React was the js framework, and react native is ... ??? somehow it's native.
wurstsalathas left
wurstsalathas joined
lovetoxhas left
kikuchiyohas joined
Kev
React native is like react, but compiles down for Android and iOS, IIUC.
kikuchiyohas left
kikuchiyohas joined
kikuchiyohas left
Beherithas left
Beherithas joined
kikuchiyohas joined
waqashas joined
kikuchiyohas left
kikuchiyohas joined
kikuchiyohas left
Beherithas left
adiaholic_has left
adiaholic_has joined
Beherithas joined
adiaholic_has left
alexishas left
alexishas joined
Beherithas left
Beherithas joined
Wojtekhas joined
kikuchiyohas joined
kikuchiyohas left
adiaholic_has joined
adiaholic_has left
adiaholic_has joined
lovetoxhas joined
mbthas joined
Beherithas left
xeckshas left
mbthas left
adiaholic_has left
adiaholic_has joined
xeckshas joined
Beherithas joined
alexishas left
kikuchiyohas joined
kikuchiyohas left
kikuchiyohas joined
Wojtekhas left
adiaholic_has left
adiaholic_has joined
mbthas joined
mbt
hi everyone, i have an mobile application development ongoing but i have a problem on my xmpp connection. so there is nothing wrong at first but after 5 minutes im getting disconnetted and when i tried to send message i cant. then im sending presence again and reconnecting but it takes time. my server is prosody btw. any help here? thanks!
lovetox
are you saying there are no stanzas exchanged for 5 minutes?
lovetox
are you using a proxy?
Zash
What platform?
mbt
no im not using proxy, but only using muc. using react native and xmpp.js, first 5 minutes is okay i can do anything then i need to reconnect
lovetox
mbt and do you receive anything before disconnect? a </stream> from the server
lovetox
otherwise you should look at server debug logs,im sure it prints the reason for the disconnect
mbt
no, i see this after 5minutes, as SENT: <close xmlns="urn:ietf:params:xml:ns:xmpp-framing"/>
mbt
i dont have any code of line to stop the connection, still it sends this stanza..
kikuchiyohas left
lovetox
ok so websocket
lovetox
do you have keepalive ping enabled on the websocket connection?
mbt
um how can i enable that? i tried to use mod_ping in prosody and activated in my config. but still my pings receive service-unavailable.
lovetox
no not on the server
lovetox
your library needs to enable it on client side
kikuchiyohas joined
lovetox
or maybe its enabled by default, i have no idea, on my library i have to set a interval and need to enable it
mbt
ok so i will look for xmpp.js keepalive instance, i assume it sends ping stanzas by time?
lovetox
you dont need to do that with websocket
lovetox
the websocket protocol has a ping/pong backed into the protocol
lovetox
it is under the xmpp layer
lovetox
before you spend time on that
lovetox
i would look into the debug log of the server
lovetox
im pretty sure it tells why it sends a close
lovetox
oh wait
lovetox
now i see it, client closes the connection
lovetox
?
flow
SENT: <close xmlns="urn:ietf:params:xml:ns:xmpp-framing"/>
doesn't that look like the library is sending the </close>?✎
kikuchiyohas left
flow
SENT: <close xmlns="urn:ietf:params:xml:ns:xmpp-framing"/>
doesn't that look like the library is sending the <close/>? ✏
lovetox
are you sure this is not in response to a server close
flow
no
lovetox
the message was for mbt :)
mbt
yes i guess library is closing but im not sending close
Beherithas left
lovetox
maybe talk to support for xmpp.js?
mbt
yes i think i need to do that but first i wanted be sure it isnt a server side thing
mbt
thank you for your helps guys
mbt
maybe sonny can answer me about why im sending this close stanza?
Beherithas joined
Yagizаhas left
lovetox
what prosody version are you using mbt?
lovetox
there was a bug with invalid pong responses in prosody recently
mbt
0.11.3
lovetox
that would be a reason a library closes the connection
lovetox
Zash? can you comment in what version the websocket pong fix was included