socket.io - ReferenceError: io is not defined

后端 未结 8 1583
再見小時候
再見小時候 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条回答
  •  猫巷女王i
    2020-12-02 13:44

    I found the answer for anyone who gets immensely confused by the horrible lack of documentation of socket.io.

    You cannot source /socket-lib/socket.io.js,

    you must source http://yourwebsite.com:12345/socket.io/socket.io.js.

    The server automatically does the rest for you.

提交回复
热议问题