TypeScript error TS2339 Property 'remoteJoin' does not exist on type 'Adapter'.
See original GitHub issueDescribe the bug Type error related to @socket.io/redis-adapter. remoteJoin or any other method of the redis adapter package throws a TS error.
error TS2339: Property 'remoteJoin' does not exist on type '{ (): AdapterConstructor | undefined;
(v: AdapterConstructor): Server<DefaultEventsMap, DefaultEventsMap, DefaultEventsMap>; }'.
94 fastify.io.adapter.remoteJoin(
There is a small possibility that i just don’t know how to make types match when this kind of internal related parts of the project is changed (like extending default adapter with a custom adapter) but I was using the same setup for JS project and there was no problem related to functionality. So I am thinking it’s just my insufficient knowledge of TS, but i wanted to post an issue anyway
To Reproduce The same type error can be reproduced with this small project that i made: https://github.com/outranker/socket.io-redist-adapter-type-error-reproduce
To run the project, first npm run watch
in the terminal and open new terminal and type npm run start
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (2 by maintainers)
Top GitHub Comments
Thank you for sharing your solution! I will give it a try when i get to my laptop
I will let you know how it goes in my app when i do try it
@komodoUSA yes, it does work with multiple nodes. I’ll try to make that clearer in the documentation.