浏览代码

kamailio-kemi-framework: document KSR.is_WSX()

Daniel-Constantin Mierla 4 年之前
父节点
当前提交
779dd10d97
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11 0
      kamailio-kemi-framework/docs/core.md

+ 11 - 0
kamailio-kemi-framework/docs/core.md

@@ -503,6 +503,17 @@ if KSR.is_WSS() then
 end
 ```
 
+### KSR.is_WSX() ###
+
+`bool is_WSX()`
+
+Return true if the incoming protocol is WS or WSS.
+
+```Lua
+if KSR.is_WSX() then
+  ...
+end
+```
 
 ### KSR.is_proto(...) ###