sockjs或Angular中的依赖项有问题

问题描述 投票:0回答:1

我无法从Angular的Observable订阅获得任何请求。该服务处于启动状态并保持活动状态,但是没有新读者,在浏览器控制台中,我看不到似乎是错误的内容,但我无法确定原因

SockJS
SockJSClient
initSocket
(anonymous)
./node_modules/webpack-dev-server/client/index.js?http://0.0.0.0:0/sockjs-node&sockPath=/sockjs-node
__webpack_require__
0
__webpack_require__
checkDeferredModules
webpackJsonpCallback

在package-lock.json中,dependencia似乎正确

"sockjs": {
  "version": "0.3.19",
  "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.19.tgz",
  "integrity": "sha512-V48klKZl8T6MzatbLlzzRNhMepEys9Y4oGFpypBFFn1gLI/QQ9HtLLyWJNbPlwGLelOVOEijUbTTJeLLI59jLw==",
  "dev": true,
  "requires": {
    "faye-websocket": "^0.10.0",
    "uuid": "^3.0.1"
  }
},
"sockjs-client": {
  "version": "1.3.0",
  "resolved": "https://registry.npmjs.org/sockjs-client/-/sockjs-client-1.3.0.tgz",
  "integrity": "sha512-R9jxEzhnnrdxLCNln0xg5uGHqMnkhPSTzUZH2eXcR03S/On9Yvoq2wyUZILRUhZCNVu2PmwWVoyuiPz8th8zbg==",
  "dev": true,
  "requires": {
    "debug": "^3.2.5",
    "eventsource": "^1.0.7",
    "faye-websocket": "~0.11.1",
    "inherits": "^2.0.3",
    "json3": "^3.3.2",
    "url-parse": "^1.4.3"
  },

angular webpack sockjs
1个回答
0
投票

api rest服务器需要套接字响应配置

© www.soinside.com 2019 - 2024. All rights reserved.