涓涓楂樻ц兘鐨凱HP 鑱婂ぉ瀹ゆ嗘灦

2018 年 1 月 8 日2130

鐩稿叧搴旂敤

PHP鑱婂ぉ瀹ゆ嗘灦

PHP鑱婂ぉ瀹ゆ嗘灦

workerman-chat鏄涓涓浠workerman浣滀负鏈嶅姟鍣ㄥ瑰櫒锛屼娇鐢≒HP寮鍙戠殑鍩轰簬Websocket鍗忚鐨勪竴涓鍙鍒嗗竷寮忛儴缃茬殑鑱婂ぉ瀹ゆ嗘灦銆

workerman-chat閲囩敤gateway workers 杩涚▼妯″瀷銆俫ateway鍙璐熻矗缃戠粶IO锛屽叏寮傛ラ潪闃诲烇紝姣忎釜gateway杩涚▼閮藉彲浠ュ悓鏃舵帴鍙椾笂涓囧㈡埛绔杩炴帴銆

workers閲囩敤鐨勬槸PHP寮鍙戣呮墍鐔熸倝鐨勫悓姝ユā鍨嬶紝骞舵彁渚涗簡寮鍙戣呭熀鏈鐨勬帴鍙 onConnect銆乷nMessage銆乷nClose銆乻endToClient銆乻endToAll绛夋柟娉曘

寮鍙戣呭彧瑕佸湪onConnect銆乷nMessage銆乷nClose涓変釜鏂规硶涓娣诲姞涓婅嚜宸辩殑涓氬姟閫昏緫鍗冲彲锛屽紑鍙戠淮鎶ら潪甯哥畝鍗曘

鐢变簬閲囩敤鐨勬槸gateway workers 杩涚▼妯″瀷锛実ateway鍜寃orkers涔嬮棿鏄鏃犵姸鎬佺殑锛実ateway鍜寃orkers鍙浠ュ垎鍒閮ㄧ讲鍦ㄤ笉鍚岀殑鐗╃悊鏈轰笂锛屾墍浠ユ墿瀹瑰拰鍗囩骇閮介潪甯告柟渚裤

workerman-chat涔熼潪甯搁傚悎娓告垙鍚庡彴寮鍙戙

鏌ョ湅php鑱婂ぉ瀹demo璇风偣鍑杩欓噷

涓嬭浇

涓嬭浇PHP 鑱婂ぉ瀹ゆ嗘灦

Fork on Github

涓嬭浇ZIP鍘嬬缉鏂囦欢 涓嬭浇35915娆

Windows鐗堟湰涓嬭浇

涓嬭浇Win鐗堟湰ZIP鍘嬬缉鏂囦欢

鐗规

鍏跺畠搴旂敤

鑱婂ぉ瀹ゆ嗘灦

linux鐜澧冨畨瑁呭惎鍔

棣栧厛锛氬弬鑰冩墜鍐妫鏌/瀹夎厀orkerman鐜澧

1銆涓嬭浇workerman-chat锛屽苟瑙e帇缂╁埌浠绘剰鐩褰

2銆佸惎鍔╳orkermanphp start.php start -d濡備笅鍥俱

php鑱婂ぉ瀹ゅ惎鍔ㄧず鎰忓浘

3銆佹祻瑙堝櫒璁块棶绔鍙http://http://www.zjjv.com//:55151濡傚浘锛(濡傛灉鏃犳硶璁块棶璇锋鏌ユ湇鍔″櫒闃茬伀澧)

php鑱婂ぉ瀹や娇鐢ㄧ晫闈

Windows鐗堟湰瀹夎呭惎鍔

1銆佺偣鍑杩欓噷涓嬭浇windows鐗堟湰鑱婂ぉ瀹ゆ簮鐮

2銆佸弬鑰杩欓噷璁剧疆PHP鐜澧冨彉閲

3銆佸弻鍑籹tart_for_win.bat杩愯

4銆佹祻瑙堝櫒璁块棶http://http://www.zjjv.com//

0 0