org.redkale.net.http

## 类 WebSocketRunner

- java.lang.Object
- - org.redkale.net.http.WebSocketRunner

- 所有已实现的接口:
    java.lang.Runnable

      public class WebSocketRunner
      extends java.lang.Object
      implements java.lang.Runnable

  详情见: http://www.redkale.org

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `protected boolean` | `closed`
    `protected Context` | `context`

  - ### 构造器概要

    构造器
    构造器和说明
    `WebSocketRunner(Context context, WebSocket webSocket, AsyncConnection channel, boolean wsbinary)`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `closeRunner()`
    `void` | `run()`
    `int` | `sendMessage(WebSocketPacket packet)`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 字段详细资料

    - #### context

          protected final Context context

    - #### closed

          protected boolean closed

  - ### 构造器详细资料

    - #### WebSocketRunner

          public WebSocketRunner(Context context,
                                 WebSocket webSocket,
                                 AsyncConnection channel,
                                 boolean wsbinary)

  - ### 方法详细资料

    - #### run

          public void run()

      指定者:
        `run` 在接口中 `java.lang.Runnable`

    - #### sendMessage

          public int sendMessage(WebSocketPacket packet)

    - #### closeRunner

          public void closeRunner()