Node server, Socket.io 'io is not defined'?

前端 未结 6 1561
伪装坚强ぢ
伪装坚强ぢ 2020-12-30 06:25

I\'ve followed the exact same steps which have always previously worked for me, create application through express, place the module dependencies in the node_modules folder.

6条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-30 07:25

    On the client, did you do:

    
    

    before you set the socket variable?

提交回复
热议问题