Node.js Bot Framework linux hosting machine traffic setup - azure

I have created the very basic bot using the Node.js option as is in the steps here. It is running and the Bot Channels appID and Pass from Azure is properly in the code.
I have also (of course) filled the messaging endpoint properly.
Yet when I try to send a message from the webchat the bot doesn't receive.
So obviously, I have to set the machine networking somehow, I have already allowed the port 8080 but that didn't help. What else should I do?
I didn't find any documentation about how to set the machine hosting Microsoft Bot Framework bot, else I wouldn't be asking here. Any ideas? I know most of the people use their own hosting so someone must know how to get it connected.

I have had the Restify setup wrong. There are no examples as to how to setup restify for the bot in the Microsoft documentation.

Related

Is there local Accepted Tunneling Solution To Test Facebook Webhooks

I am integrating WhatsApp with Django application that I am still running locally to send WhatsApp which is working fine.
However to receives messages from Facebook it needs a webhook that I have implemented using Django since I am still building the application locally. on my laptops I am using Tunneling solutions Ngrok and LocalTunnel to expose the application online so that Facebook can send incoming messages to my App onto my laptop but Facebook is rejecting URLs that are I created using Ngrok and LocalTunnel with error message below:
The url https://2y7y-56-897-3-457.eu.ngrok.io/apv/facebook has been identified as malicious and/or abusive.
The url https://great-finds-comes-78-673-8-897.loca.lt/apv/facebook has been identified as malicious and/or abusive.
I have two questions:
Has anyone been successful using Ngrok and Localtunnel while building locally on Facebook webhooks?
what other tools are there that are available on windows to achieve this? I don't have a dedicated domain name yet and dedicated cloud/online platform where I can host the app yet.
The other alternative solutions I have seen that have been mentioned, it's the Ultrahook though the client is available as a Ruby gem that I have failed to get running on windows:
I was following this question: Can i use localhost as a URL Callback in a messenger webhook

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.

WinJS App - Not able make ajax request using WinJs.xhr

I'm developing a simple app using WinJS for Windows 8 and 10. The app makes an Http request using Winjs.xhr.
I developed Web API hosted on a server with CORS enabled into that. Now, when I install my Win app in development machine (where API(s) are hosted), Win App is able to download the data.
On remote computer it fails. It executes error code block and returns readyState=4, status=0.
See detail description of problem I'm facing here
Finally Solved after spending my 3 days behind this searching everywhere.
I have been using http://192.168.4.134:9084/.... URL for sending the request. Initially, I had set app capability to Internet(client) and Internet(client & server). Later while rethinking I realized that since it's routed through network, I may also require Private Network (Client & Server) to be checked marked.
for now this has solved the problem, and created a question that "Do I need to check mark it when I will publish it for store?"
Another off topic question, How to sideload this app in all computers at once assuming that all those PCs are connected with single AD server under one domain?

Google Cloud Messaging XMPP Server with Node.js

Title is fairly self explanatory. I need to create an XMPP server in Node.js to communicate with Google Cloud Messaging. The XMPP connection should allow me to send messages from the server to the client (Android app) and also from the app back to the server without the app needing a seperate socket connection to the server (all messages routed through GCM. Could anyone perhaps guide me in the right direction?
P.S. If I have provided insufficient information please let me know :)
It seems that a simple Google search return that there is an XMPP server developed in NodeJS: https://github.com/node-xmpp/node-xmpp-server
This is likely what you want to deploy.

XMPPHP Could not connect after timeout

I am trying to create a web based PHP application which can allow chat to my Gmail friends. Something like meebo.com. I downloaded XMPPHP, and executed on localhost, and it is working fine, but when I uploaded everything to Yahoo Small business web hosting, it is throwing connection timeout error.
Do anyone else faced such problem. I heard many of them did, but no one have any solution yet.
Any suggestion will be very helpful. I am new to XMPP clients.
Just some ideas...
How are you trying to connect to the XMPP server? With XMPPHP you may use two classes which are
XMPPHP
XMPPHP_BOSH
You might try both, since they work on different ports (XMPPHP for example on 5222 and XMPPHP_BOSH on 80). So if this is a port issue, trying XMPPHP_BOSH would be an idea. You will need to find out though if this is supported by the XMPP server you are trying to connect to. And if so, you need to know the url the server exposes the BOSH service on.
Anyways, I would recommend to check out what kind of 'restrictions' there are in Yahoo Small business web hosting and on the side of the XMPP server.
If you intend to check XMPPHP_BOSH out, consider this issue to make it work: Issue 47: Http-bind error. All in all XMPPHP seems very buggy and incomplete...

Resources