无法使用 rsocket-tcp-client 包

问题描述

我想让客户端重新连接到我的服务器,以防服务器重新启动。我正在尝试以下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'

欢迎任何帮助。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)