MCPcopy Create free account
hub / github.com/devfeel/longweb / OnPolling

Function OnPolling

httpserver/handlers/pollhandler.go:46–215  ·  view source on GitHub ↗

*longpoll统一处理入口 - 兼容Hijack与HttpRequest Author: panxinming CreateTime: 2017-01-25 13:00 入参: jsonpcallback: 应用定义jsonp-callback函数名,如果不传入默认为callback appid:应用编号,统一申请 groupid:用户组编号,应用自定义 userid:用户编号,应用需保证userid在同Appid下的唯一性 querykey:透传key,会透传给应用messageapi,一般用于决定是否有需要马上返回的数据 返回值: 0 成功 -100001:appid、groupid、

(ctx dotweb.Context)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 9

CheckAuthTokenFunction · 0.85
NewClientFunction · 0.85
RemoveClientFunction · 0.85
RegisterClientFunction · 0.85
DebugMethod · 0.80
WarnMethod · 0.80
GetClientInfoMethod · 0.80
ErrorMethod · 0.80
ReadMessageMethod · 0.80

Tested by

no test coverage detected