socket.io - ReferenceError: io is not defined

后端 未结 8 1572
再見小時候
再見小時候 2020-12-02 13:11

I am writing an application for Android 2.3.5 (that will also be compatible with iOS). I wish to transfer data from the app\'s HTML/Javascript to a Python program on a serve

8条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-02 13:53

    I solved it myself by changing index.html to import the socket io client from bower, first i installed the bower component:

     bower install socket.io-client
    

    then i changed the reference in index.html to :

     
    

    Or file could be found at - lib/socket.io-client/dist/socket.io.js

提交回复
热议问题