TypeScript and Socket.io

前端 未结 4 2247
伪装坚强ぢ
伪装坚强ぢ 2021-02-04 15:08

I would like to use socket.io in my Typescript project, but I\'ve only found .d.ts files for server-side typescript.

This is a nice example: https://github.com/soywiz/ty

4条回答
  •  自闭症患者
    2021-02-04 15:55

    You should use socket.io-client d.ts file in the client and while using socket.io d.ts file on the server.

提交回复
热议问题