我想让客户端重新连接到我的服务器,以防服务器重新启动。因此,我正在尝试下面的piece of code。问题是,在将这一行"rsocket-tcp-client": "^0.0.23"添加到我的package.json并运行$npm install && ng update && ng serve之后,我得到了以下错误消息:
Error: ./node_modules/rsocket-tcp-client/build/RSocketTcpClient.js
Module not found: Error: Can't resolve 'net' in '/Users/gitter/myproject/node_modules/rsocket-tcp-client/build'
Error: ./node_modules/rsocket-tcp-client/build/RSocketTcpClient.js
Module not found: Error: Can't resolve 'tls' in '/Users/gitter/myproject/node_modules/rsocket-tcp-client/build'请提供任何帮助,我们将非常欢迎。
发布于 2021-04-05 14:51:01
如果要使用该示例代码,则还需要安装tls和net包。
https://stackoverflow.com/questions/66206883
复制相似问题