Waring channel connection closed and try to reconnect
這是啥問題啊 求大神指教
如果你需要在其它服務(wù)器去訪問ChannelServer,ChannelServer需要監(jiān)聽內(nèi)網(wǎng)ip而不是127.0.0.1。監(jiān)聽內(nèi)網(wǎng)ip后所有連接ChannelServer的代碼要改為 Channel\Client::connect('內(nèi)網(wǎng)ip', 2206);
,否則會連接失敗,報channel connection closed and try to reconnect
。
一個程序監(jiān)聽127.0.0.1代表禁止其它服務(wù)器訪問,只能本機127.0.0.1訪問。這個屬于比較基礎(chǔ)的知識了。
@1:我的運行截圖 第一個 frame 是chennel的 websocket用來客戶端連接使用 所以就連接不上 我把frame 換成websocket 就可以了