Nchan 实时消息内置变量
$nchan_channel_id
The channel id extracted from a publisher or subscriber location request. For multiplexed locations, this is the first channel id in the list.$nchan_channel_id1
,$nchan_channel_id2
,$nchan_channel_id3
,$nchan_channel_id4
As above, but for the nth channel id in multiplexed channels.$nchan_subscriber_type
For subscriber locations, this variable is set to the subscriber type (websocket, longpoll, etc.).$nchan_publisher_type
For publisher locations, this variable is set to the subscriber type (http or websocket).$nchan_prev_message_id
,$nchan_message_id
The current and previous (if applicable) message id for publisher request or subscriber response.$nchan_channel_event
For channel events, this is the event name. Useful when configuringnchan_channel_event_string
.$nchan_version
Current Nchan version. Available since 1.1.5.
Additionally, nchan_stub_status
data is also exposed as variables. These are available only when nchan_stub_status
is enabled on at least one location:
$nchan_stub_status_total_published_messages
$nchan_stub_status_stored_messages
$nchan_stub_status_shared_memory_used
$nchan_stub_status_channels
$nchan_stub_status_subscribers
$nchan_stub_status_redis_pending_commands
$nchan_stub_status_redis_connected_servers
$nchan_stub_status_total_ipc_alerts_received
$nchan_stub_status_ipc_queued_alerts
$nchan_stub_status_total_ipc_send_delay
$nchan_stub_status_total_ipc_receive_delay
最新文章
- 3.springMVC+spring+Mybatis整合Demo(单表的增删该查,这里主要是贴代码,不多解释了)
- javascript-抽象工厂模式
- 小说一下case ~
- Jocket
- js替换指定字符串
- EcShop后台添加菜单[步骤]
- 回锅的美食:JSP+EL+JSTL大杂烩汤
- golang windows 安装方法
- Winform开发框架中工作流模块之审批会签操作(2)
- [Chrome 浏览器快捷键]——“你是键盘党吗?”
- Sqlserver事务隔离级别详解
- selenium的定位方式
- day37-多进程多线程二-锁
- 贝塞尔曲线UIBezierPath简单使用
- Vue命令(一)
- wxParse解析富文本内容使点击图片可以选中并实现放大缩小
- centos7安装Amber16 &;&; AmberTools
- 多个SpringMVC项目配置统一管理(来自于springCloud的统一配置思路)
- C# 自定义控件入门
- [转]csharp:Microsoft.Ink 手写识别(HandWriting Recognition)
热门文章
- spring mvc:内部资源视图解析器(注解实现)@Controller/@RequestMapping
- UVALive-5713 Qin Shi Huang's National Road System (次小生成树)
- CodeForces 55D Beautiful numbers (SPOJ JZPEXT 数位DP)
- 控制语句2:循环:for 与 while
- 双系统下ubuntu不能访问658GB卷,磁盘挂载失败。
- 浅谈HTML中的块级元素和内联元素
- log4cpp之Layout布局
- 【WebGL】4.光源
- MBProgressHUD基础用法
- 链表实现队列C语言写法