Get desktop application:
View/edit binary Protocol Buffers messages
broadcast操作,对应每个target_path
用户鉴权
鉴权请求,通过authorization验证绑定用户mid
冷启动id,算法uuid,重新起启会变
连接id,算法uuid,重连会变
最后收到的消息id,用于过虑重连后获取未读的消息
鉴权返回
(message has no fields)
心跳保活:成功心跳为4分45秒,重试心跳为30s,三次收不到进行重连(不超过5分45)
心跳请求
(message has no fields)
心跳返回
(message has no fields)
订阅target_path
取消订阅target_path
消息回执
消息回执
消息id
ack来源,由业务指定用于埋点跟踪
消息对应的target_path,方便业务区分和监控统计
{type}://{room_id}
{type}://{room_id}
broadcast连接隧道
创建双向stream连接隧道
target_path: "/" Service-Name "/" {method name} 参考 gRPC Request Path
请求消息信息
业务target_path
业务pb内容
Laser
监听上报事件
服务端下发日志上报事件
任务id
下发时间
ModManager
Push
Deprecated: 推送任务id,使用string
业务 1:是视频 2:是直播 3:是活动
类型 1:是默认 2:是热门 3:是实时 4:是推荐
主标题
副标题
图片地址
跳转地址
展示位置,1是顶部
展示时长(单位:秒),默认3秒
失效时间
推送任务id
应用内推送黑名单 UGC: ugc-video-detail PGC: pgc-video-detail 一起看: pgc-video-detail-theater 直播: live-room-detail Story: ugc-video-detail-vertical 播单黑名单 playlist-video-detail
预留pvid
跳转资源
Test
监听上报事件
任务id
时间戳
消息
扩展
message_id: client: 本次连接唯一的消息id,可用于回执 server: 唯一消息id,可用于上报或者回执 sequence: client: 客户端应该每次请求时frame seq++,会返回对应的对称req/resp server: 服务端下行消息,只会返回默认值:0
Used in:
消息id
frame序号
是否进行消息回执(发出MessageAckReq) downstream 上只有服务端设置为true,客户端响应 upstream 上只有客户端设置为true,服务端响应 响应帧禁止设置is_ack,协议上禁止循环 通常只有业务帧才可能设置is_ack, 因为协议栈(例如心跳、鉴权)另有响应约定
业务状态码
业务ack来源, 仅downstream时候由服务端填写.
Used in:
未知
番剧
视频
直播
Used in:
Used in:
业务类型
Used in:
未知
视频
直播
活动
展示未知
Used in:
未知
顶部
消息类型
Used in:
未知
默认
热门
实时
推荐
Used in:
Used in:
,(message has no fields)
Used in:
,(message has no fields)
Used in:
,Used in:
,target_path
Used as request type in: Broadcast.Subscribe, Broadcast.Unsubscribe
需要订阅的target_paths
Used in:
直播: roomid UGC: avid PGC: seasonid Story: avid 举个例子 Type: LINK_TYPE_BANGUMI (番剧) Resource: {"seasonid":"123"} Type: LINK_TYPE_VIDEO (视频) Resource: {"avid":"123"} Type: LINK_TYPE_LIVE (直播) Resource: {"roomid":"123"}