-
mbt
hi im trying to develop a chat app w/ react-native, but im not sure i can connect my xmpp server prosody with react?
-
mbt
can someone help thankss?
-
jonas’
mbt, react is javascript, right?
-
mbt
yes
-
jonas’
mbt, you’ll probably need to look into javascript libraries doing XMPP over WebSocket or BOSH
-
jonas’
as well as enabling the respective modules in prosody
-
Zash
Once upon a time there was hints of native TCP connections in JavaScript
-
mbt
thanks i will check those
-
Zash
Like, in FirefoxOS back when that was a thing
-
mbt
i guess making native TCP conns can make harder my work
-
Link Mauve
Ah, sonny left, he’s working on a React Native client atm.
-
Link Mauve
Wait for him to come back.
-
Link Mauve
There is also Reventlov (not present here), and JSXC people.
-
Link Mauve
It seems like a popular library atm.
-
mbt
okay thanks i will stay around
-
mbt
JSXC looks solid but i guess implementing in rn is not the same way
-
sonny
Hey, xmpp.js has first class support for react native but websocket only
-
sonny
TCP/TLS would be nice but I haven't had the time/need for it yet - one would need to write glue java/swift code
-
sonny
See also https://medium.com/@connectycube/xmpp-real-time-chat-in-react-native-8d6d5d23dd47
-
sonny
Except there's no need to clone anymore you can just npm install
-
Zash
Non-standard and can't find anything about wrapping it in TLS https://developer.mozilla.org/en-US/docs/Archive/B2G_OS/API/TPC_Socket_API