Skip to content

Commit

Permalink
Port and Endpoint updates
Browse files Browse the repository at this point in the history
  • Loading branch information
pcostantini committed May 16, 2017
1 parent 33b5c15 commit fca941a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Node/blog-customChannelData/node_custom_channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ const MSFT_APP_PW = process.env.MSFT_APP_PW;

//create an express server
var app = express();
app.listen(process.env.PORT || 3000, function () {
console.log("Express app listening on port: " + process.env.PORT || 3000);
var port = process.env.PORT || 3978;
app.listen(port, function () {
console.log("Express app listening on port: " + port);
});

//create a chat connector for the bot
Expand All @@ -27,7 +28,7 @@ var connector = new botbuilder.ChatConnector({
var bot = new botbuilder.UniversalBot(connector);

//hook up bot endpoint
app.post("/messages/receive", connector.listen());
app.post("/api/messages", connector.listen());

//root dialog
bot.dialog("/", function (session) {
Expand Down

0 comments on commit fca941a

Please sign in to comment.