Trying to include a property in a socket connection to identify the user and send a response solely to that individual. Came across a potential solution at: How to add parameters to a FeathersJS socket connection
Unfortunately, the solution doesn't seem to work in TypeScript. Encountered this error message: Property 'feathers' does not exist on type 'Socket'.
app.configure(
socketio(function (io) {
io.use(function (socket, next) {
socket.feathers.token = socket.handshake.query.token; // This is where the issue lies
next();
});
}) );
Searching for a viable solution to this dilemma. Should I attempt to extend the type or perhaps explore other options? Is there another method to add something to a connection for accessibility in channels.ts?