S2s connection

I have 2 server.
one is openfire xmpp server and other is nodejs http server.
Is there any way to establish connection between these two servers ?

or s2s connection is only for 2 openfire xmpp server ?

S2S is for two XMPP servers. It doesn’t have to be Openfire on both ends. But it has to be XMPP. Not sure what Nodejs is. If it is simple http server, then no, you can’t have S2S with that.