Embed node.js, socket.io and mongodb chat code - node.js

I have created a chat application using node.js, socket.io and mongodb and hosted it on a server.
Now I want to use that chat application on different website by taking a link or code and embed it in normal website that is hosted in another server that uses apache.

Related

Socket.io, Unreal, & Heroku (Node js) : Client not connecting to server?

I'm currently working on a game that connects to a Node.js server for multiplayer data.
The game is developed in Unreal Engine 4 and uses the Socket.io plugin to connect to the Node.js server (cors, express being used).
Everything works locally. So now I'm trying to move on to hosting the server remotely and connecting the unreal client to the remote Node.js server.
I looked into Heroku and set myself up, everything is working fine on its end to my knowledge - I created a tester page with a success message when you load the URL and that comes through.
My first question is - what am I doing wrong when I use unreal to point the socket.io plugin to the server url?
The socket.io plugin asks for a port #, I've tried the following:
http:/{my server/heroku url}:8080/
http:/{my server/heroku url}:3000/
http:/{my server/heroku url}:18279/ (which was given to me by Heroku).
http:/{my server/heroku url}/
So far the game does not connect to the deployed server, the way it does locally.
Any suggestions on what could be going wrong/what am I failing to do next?
A few things after researching:
I do have http-session-affinity enabled
Since the server is working locally, I'm going to make the assumption that the deployed code is not the issue, and that it has to do with the way I'm trying to connect.
is it possible that I have further authorization to config? Such as allowing the unreal game/client to connect to the server/that the client is being blocked some how?
I figured out the issue, it had to do with how my Node.js server code was calling socket.io.
If you come across this issue please send me a message or comment here and I will be happy to send you the code that worked.

GUI for a MQTT server on NodeJS

I have a MQTT bridge and I needed a GUI for it to show status of connectivity and metrics such as how many locally connected devices, messages received from local devices.
Both the MQTT bridge and the GUI will be on the same raspberry pi.
Looking through the options, but it seems that making the GUI as a web, running in Express, and connects to the MQTT bridge (mosca) via websocket over localhost, is the only option?
Is there other UI framework in NodeJS that supports model bindings without having to do an connection with the localhost? Trying to reduce the number of connections to the MQTT bridge which is a Mosca server on NodeJS.
Putting in another way: I noticed Desktop Apps using ExpressJS does not support modal bindings, and if there is any change of values such as new clients connected to the server, I need to reload the whole page? I can achieve modal bindings with a web page with say AngularJS, but it also means the web app is isolated from the MQTT server running NodeJS. I am just wondering if there is any framework that I can merge web JS and backend NodeJS into single app.

Need help http Server and client server

I have used an application for login, adding friends and chat using node.js and mongoDB.I installed the node.js and monogoDB on ec2 instance. However, I do not know if need to use client server and http server?
Here is the application that I used https://github.com/1karthik/Node.js_UserLogin_Template
note: I am new to node.js and mongoDB
you dont need a "client server". Your http server will serve to your clients some javascript files that will help them to comunicate with your server. If you go in app/public/scripts you can see theese files.

web server(tomcat, jboss..etc) can communicate with nodejs?

our team use both web server(tomcat or jboss) and node js
my team member make user management in web server. and
and he will send user session to node js socket.
is it possible? for node js how to receive web socket connection from web server?
I use express, socket io,webrtc.io module in nodejs
Yes web servers can communicate to the node js using curl, which hits url and process the response.

Chat using client.html on localhost and running server.js online?

Can i create simple chat app where e.g. client.html is on my localhost server, and server.js is uploaded on nodester.com and running online (using socket.io)?
For example, how can I adapt the simple chat code in this question for working in the way described above (server.js on some server online and client.html on my localhost)?
Absolutely. Have a chat application running on AWS and the chat client running on localhost. Presume it should be possible with the others too.

Resources