Socket.IO - require is not defined

后端 未结 8 2164
Happy的楠姐
Happy的楠姐 2020-12-28 08:49

I\'m trying to get socket.io working but now in Chrome I get the error:

Uncaught ReferenceError: require is not defined

client.php:9

8条回答
  •  再見小時候
    2020-12-28 09:24

    If your script isn't coming from your webserver, this will not work:

    
    

    You have to explicitely state host and port:

    
    

提交回复
热议问题