Saturday, 20 July 2019

How do I export socket.io instance to other modules in typescript?

I exported a socketIO instance from my server.ts fileexport const io: socketIO.Server = socketIO.listen(server);and Imported it in another fileimport {io} from '@server';when I try to use the properties on it, i get:undefined

Submitted July 20, 2019 at 08:43AM by antgha

No comments:

Post a Comment