Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vicancy authored Oct 28, 2021
1 parent b31eb5d commit 40fc264
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/web-pubsub/web-pubsub-express/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ const express = require("express");
const { WebPubSubEventHandler } = require("@azure/web-pubsub-express");
const handler = new WebPubSubEventHandler(
"chat",
["https://<yourAllowedService>.webpubsub.azure.com"],
{
handleConnect: (req, res) => {
// auth the connection and set the userId of the connection
res.success({
userId: "<userId>"
});
}
},
allowedEndpoints: ["https://<yourAllowedService>.webpubsub.azure.com"]
}
);

Expand Down

0 comments on commit 40fc264

Please sign in to comment.