question

xushunhai-1576 avatar image
0 Votes"
xushunhai-1576 asked

failed: Error during WebSocket handshake: Unexpected response code: 400

when I use Teams api /me/drive/root/subscriptions/socketIo
and follow the sample
// this is the notificationUrl returned from this API
var notificationUrl = "https://f3hb0mpua.svc.ms/zbaehwg/callback?snthgk=1ff3-2345672zz831837523";

// 'io' comes from the socket.io client library
var socket = io(notificationUrl);

// these examples log to the console.
// your app would provide its own callbacks
socket.on("connect", ()=>console.log("Connected!"));
socket.on("notification", (data)=>console.log("Notification!", data));

it returned error failed: Error during WebSocket handshake: Unexpected response code: 400

microsoft-365-apps-publishing-dev
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers