Skip to content

szisa/PHPWebSocket

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

WebSocket 接口

地址:

ws://ws.sxisa.org:10240

用法:

请参照index.html的Js代码。

Message指令:

{::List} 获取当前在线列表。

接口格式(Sample):

  1. 通信接口:
{
	"user" : {
		"id" : "1",
		"ip" : "192.168.0.1"
	},
	"status" : "connect/disconnect/sendmsg",
	"msg" : "the message which send"
}
  1. 在线列表:
{
	"list" : [{
		"id" : "1",
		"ip" : "192.168.0.1"
	},
	{
		"id" : "2",
		"ip" : "192.168.0.2"
	}]
}

view sample →

About

isa websocket interface source

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 90.3%
  • HTML 9.7%