We have a websocket connection in a Feathers application but it sometimes works, sometimes doesn't, you can see the clients codes here:
return feathersClient
.service('donations')
.watch({ listStrategy: 'always' })
.find({
query: {
lessThanCutoff: { $ne: true },
status: { $ne: Donation.FAILED },
$or: [{ intendedProjectTypeId: id }, { ownerTypeId: id }],
$limit: 0,
},
})
and feathers config in server here: https://github.com/Giveth/feathers-giveth/blob/develop/src/app.js
Downgrading feathers-socketio has fixed the issue, you can checkout my PR in our project