iT邦幫忙

0

ios socket.io 遇到的問題

  • 分享至 

  • xImage

sockethandler.swift
https://ithelp.ithome.com.tw/upload/images/20211017/20136753qJgFAoOQH8.png
ViewController.swift
https://ithelp.ithome.com.tw/upload/images/20211017/20136753tXOcUd6Jr9.png
Info.plist
https://ithelp.ithome.com.tw/upload/images/20211017/20136753vknVZuPCYg.png
swift 終端機
https://ithelp.ithome.com.tw/upload/images/20211017/20136753OIV4xFOJpx.png

node.js
https://ithelp.ithome.com.tw/upload/images/20211017/20136753WU2LaAwGwO.png
server
https://ithelp.ithome.com.tw/upload/images/20211017/20136753j7F1UD7aXn.png

各位高手好,小弟在swift串接socket.io遇到了瓶頸以上是我的程式碼,爬了好多文都失敗快哭屎,目前遇到的問提是,client端有時可以連到有時卻連不到,同時client端也會一直有也一直抓連線,在上面好像也無法emit及on(跑不出connect後print出的值),不知道各位高手能不能看出來問題出在哪,謝謝。

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

0
YC
iT邦研究生 2 級 ‧ 2021-10-22 11:46:33

你有試著監聽SocketClientEvent.error嗎?

我要發表回答

立即登入回答