2***@qq.com
2***@qq.com
  • 发布:2019-01-11 21:00
  • 更新:2020-06-03 01:11
  • 阅读:4090

uniapp 怎么才能连接 aspnetcore.signalR?

分类:uni-app

uniapp 怎么才能连接 aspnetcore.signalR?
如题,卡在这里不晓得怎么弄了

2019-01-11 21:00 负责人:无 分享
已邀请:
9***@qq.com

9***@qq.com - 敬畏每一行代码,敬畏每一份托付

经过测试,是可以连接上的,直接在signalR.js实现WebSocket放进uni-app引用即可

beetle2013

beetle2013

是不是需要服务端实现websocket服务?如果是这样的话,我客户端是不是直接websocket就可以连,不需要使用signalr?

  • 9***@qq.com

    当然也可以,websocket只是signalr中的一种客户端的连接。

    2019-05-31 09:55

zhongpei

zhongpei - 1984

17:50:06.532 50:05.749 32235 32263 E console : [ERROR] reportJSException >>>> exception function:createInstance, exception:Exception: TypeError: undefined is not an object (evaluating 'modules[moduleId].call')
17:50:06.553 50:05.749 32235 32263 E console : webpack_require@(global function):34105:34
17:50:06.576 50:05.749 32235 32263 E console : (global function):36976:46
17:50:06.598 50:05.749 32235 32263 E console :
webpack_require
@(global function):34105:39
17:50:06.619 50:05.749 32235 32263 E console : (global function):36833:97
17:50:06.640 50:05.749 32235 32263 E console : webpack_require@(global function):34105:39
17:50:06.661 50:05.749 32235 32263 E console : (global function):35492:103
17:50:06.682 50:05.749 32235 32263 E console :
webpack_require
@(global function):34105:39
17:50:06.703 50:05.749 32235 32263 E console : (global function):34180:88
17:50:06.724 50:05.749 32235 32263 E console : webpack_require@(global function):34105:39
17:50:06.745 50:05.749 32235 32263 E console : webpackUniversalModuleDefinition@(global function):34083:27
17:50:06.766 50:05.749 32235 32263 E console : (global function):34085:3
17:50:06.787 50:05.749 32235 32263 E console : F:\Dev\RCTEA-APP-v1.0\rctea.uni-app\common\im\signalr.js@(global function):38194:34
17:50:06.808 50:05.749 32235 32263 E console :
webpack_require
@(global function):14538:35
17:50:06.909 50:05.749 32235 32263 E console : (global function):14295:58
17:50:06.909 50:05.749 32235 32263 E console : ./node_modules/babel-loader/lib/index.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js?!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/vue-loader/lib/index.js?!F:\Dev\RCTEA-APP-v1.0\rctea.uni-app\App.vue?vue&type=script&lang=js&@(global function):14361:34
17:50:06.923 50:05.749 32235 32263 E console : webpack_require@(global function):14538:35
17:50:06.944 50:05.749 32235 32263 E console : F:\Dev\RCTEA-APP-v1.0\rctea.uni-app\App.vue?vue&type=script&lang=js&@(global function):14424:605
17:50:06.965 50:05.749 32235 32263 E console :
webpack_require
@(global function):14538:35
17:50:06.986 50:05.749 32235 32263 E console : F:\Dev\RCTEA-APP-v1.0\rctea.uni-app\App.vue@(global function):14385:110
17:50:07.007 50:05.749 32235 32263 E console : webpack_require@(global function):14538:35
17:50:07.028 50:05.749 32235 32263 E console : (global function):54192:54
17:50:07.049 50:05.749 32235 32263 E console : F:\Dev\RCTEA-APP-v1.0\rctea.uni-app\main.js@(global function):54231:34
17:50:07.070 50:05.749 32235 32263 E console :
webpack_require
@(global function):14538:35
17:50:07.091 50:05.749 32235 32263 E console : checkDeferredModules@(global function):14495:45
17:50:07.112 50:05.749 32235 32263 E console : (global function):14280:61
17:50:07.134 50:05.749 32235 32263 E console : require@(global function):8:664043
17:50:07.154 50:05.749 32235 32263 E console : (global function):8:663658
17:50:07.175 50:05.749 32235 32263 E console : (global function):59947:8
17:50:07.196 50:05.749 32235 32263 E console : require@(global function):8:664043
17:50:07.217 50:05.749 32235 32263 E console : (global function):59949:8
17:50:07.238 50:05.749 32235 32263 E console : anonymous@(global function):131426:7
17:50:07.258 50:05.749 32235 32263 E console : (weex framework):1:41537
17:50:07.279 50:05.749 32235 32263 E console : createInstance@(weex framework):1:41548
17:50:07.300 50:05.749 32235 32263 E console : (weex framework):1:178111
17:50:07.321 50:05.749 32235 32263 E console :
17:50:07.342 50:05.749 32235 32263 E console : getTemplateInfo== template md5 4766922ec2203f627357f459c1c7aa48 length 11845068 base64 md5 R2aSLsIgP2JzV/RZwceqSA== response header {"templateSourceBase64MD5":["R2aSLsIgP2JzV/RZwceqSA=="],"templateSourceMD5":["4766922ec2203f627357f459c1c7aa48"]}

1***@qq.com

1***@qq.com

是可以连接的,搜索小程序signalr github上有个包,初步测试是ok的

该问题目前已经被锁定, 无法添加新回复