WebSockets教程6:在服务器上接收消息



了解如何与Websockets上的服务器通信。

完整的播放列表网址:https://www.youtube.com/playlist?list=PLYxzS__5yYQQRizvwNYWwzFjd9J4ni_Ga。

10 comments
  1. var s = new server({ port: 5001 });

    TypeError: server is not a constructor

    at Object.<anonymous> (C:UsersEfeDesktopTPTidkserverindex.js:2:9)

    at Module._compile (internal/modules/cjs/loader.js:689:30)

    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)

    at Module.load (internal/modules/cjs/loader.js:599:32)

    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)

    at Function.Module._load (internal/modules/cjs/loader.js:530:3)

    at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)

    at startup (internal/bootstrap/node.js:283:19)

    at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)

    why it saying it ?

  2. This is awesome dude haha finally i can watch the next tutorial . Its hard to do it continuesly so i decided to pause it so i can reach your typing speed LOL

Comments are closed.