luixaviles / socket-io-typescript-chat

A chat application implemented using Socket.io, TypeScript, Angular and Angular Material components

Home Page:https://medium.com/dailyjs/real-time-apps-with-typescript-integrating-web-sockets-node-angular-e2b57cbd1ec1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

socket.io-client dependency version mismatch

michaelkrone opened this issue · comments

It seems socket.io-client is only available in the client project because karma defines it as a dependency. This will not allow to explicit define the socket.io-client version to be used.
Additionally, the server defines the socket.io dependency as socket.io": "~2.0.3. karma@1.7.1 is using socket.io-client@1.7.3, which already is a major version mismatch.

Maybe the client should use the socket.io-client the server is serving, or at least use socket.io as a defined dependency in the clients package.json

Hi @michaelkrone. I think now we have right versions on the client/server side:

  • Client: "socket.io": "~2.0.3" and "@types/socket.io-client": "~1.4.29"
  • Server: "socket.io": "~2.0.3" and "@types/socket.io": "~1.4.29"

Thanks.