We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9cc362 commit 5d3bfefCopy full SHA for 5d3bfef
tools/awps-tunnel/server/samples/upstream/server.js
@@ -11,12 +11,15 @@ const handler = new WebPubSubEventHandler("chat", {
11
},
12
handleUserEvent: (req, res) => {
13
console.log(JSON.stringify(req));
14
- res.success("Hey " + req.data, req.dataType);
+ res.success(JSON.stringify(req.data), req.dataType);
15
16
});
17
18
const app = express();
19
-
+app.use((req, res, next)=>{
20
+ console.log(`${req.method} ${req.url}`);
21
+ next();
22
+})
23
app.use(handler.getMiddleware());
24
25
app.listen(3000, () => console.log(`Azure WebPubSub Upstream ready at http://localhost:3000${handler.path}`));
0 commit comments