Closed CuAnnan closed 3 years ago
https://localhost/peerjs/id also results in a 404 and the node output lists GET /peerjs/id 404 1.164 ms - 1741
Which would imply that app.use('/peerjs') is not being respected.
Setting Debug to 3 on the client side returne
PeerJS: Socket closed.
close { target: WebSocket, isTrusted: true, wasClean: false, code: 1006, reason: "", srcElement: WebSocket, currentTarget: WebSocket, eventPhase: 2, bubbles: false, cancelable: false, … }
logger.ts:57:12
ERROR PeerJS: Error: Lost connection to server. logger.ts:61:12
PeerJS: Disconnect peer with ID:ZNfSEBbys logger.ts:57:12
Wrong depot. WIll repost to peer-server now
The rest of the app.js stuff is doing various things like bootstrapping mongoose, setting routers, handling auth.
The front end code looks like
https://localhost/peerjs returns the expected JSON
Any attempt to hoist a peerjs connection fails.