类 WebSocketProperties

java.lang.Object
com.sie.mbm.mom.framework.websocket.config.WebSocketProperties

@ConfigurationProperties("mom.websocket") public class WebSocketProperties extends Object
websocket 配置 websocket props
  • 字段详细资料

    • PREFIX

      public static final String PREFIX
      另请参阅:
    • path

      private String path
      路径: 无参: /ws 有参: PathVariable: 单参: /ws/{test} 多参: /ws/{test1}/{test2} query: /ws?uid=1无效输入:'&name'=test
    • allowOrigins

      private String allowOrigins
      允许访问源
    • heartbeat

      private boolean heartbeat
      心跳处理
    • mapSession

      private boolean mapSession
      是否开启对session的映射记录
    • messageDistributor

      private String messageDistributor
      消息分发器:local | redis,默认 local, 如果自定义的话,可以配置为其他任意值
  • 构造器详细资料

    • WebSocketProperties

      public WebSocketProperties()