弱弱的問一下:
問題1:蘋果系統(tǒng)Socket怎么和服務器連接? 有沒有簡單的例子?
問題2:workerman-chat-for-win\Applications\Chat\Events.php 這里沒有鏈接mysql的范本 ,目前解決方案是用include_once 引用mysql.php ,相當于網(wǎng)站里配置了2次數(shù)據(jù)庫。
1、github上找一個websocket客戶端庫去連,github上會有客戶端使用方法說明。
2、workerman-chat 是單獨的socket服務,和網(wǎng)站是獨立的服務,數(shù)據(jù)庫配置應該是和網(wǎng)站配置分開。當然也可以加載同一份數(shù)據(jù)庫配置,看自己需要。
數(shù)據(jù)庫使用方法參見手冊 http://wtbis.cn/gatewaydoc/appendices/mysql.html