### Members

#### constant CreateRoomFlag :number

  创建房间标识

  ##### Properties:

  Name | Type | Description
  --- | --- | ---
  `FixedMaster` | number | Master 掉线后固定 Master
  `MasterUpdateRoomProperties` | number | 只允许 Master 设置房间属性

#### constant Event :string

  事件

  ##### Properties:

  Name | Type | Description
  --- | --- | ---
  `CONNECTED` | string |
  `CONNECT_FAILED` | string |
  `DISCONNECTED` | string |
  `LOBBY_JOINED` | string |
  `LOBBY_LEFT` | string |
  `LOBBY_ROOM_LIST_UPDATED` | string |
  `ROOM_CREATED` | string |
  `ROOM_CREATE_FAILED` | string |
  `ROOM_JOINED` | string |
  `ROOM_JOIN_FAILED` | string |
  `PLAYER_ROOM_JOINED` | string |
  `PLAYER_ROOM_LEFT` | string |
  `PLAYER_ACTIVITY_CHANGED` | string |
  `MASTER_SWITCHED` | string |
  `ROOM_OPEN_CHANGED` | string |
  `ROOM_VISIBLE_CHANGED` | string |
  `ROOM_LEFT` | string |
  `ROOM_CUSTOM_PROPERTIES_CHANGED` | string |
  `PLAYER_CUSTOM_PROPERTIES_CHANGED` | string |
  `CUSTOM_EVENT` | string |
  `ERROR` | string |

#### constant LogLevel

  日志级别

#### constant PlayState

  连接状态

#### constant ReceiverGroup :number

  接收组枚举

  ##### Properties:

  Name | Type | Description
  --- | --- | ---
  `Others` | number | 其他人（除了自己之外的所有人）
  `All` | number | 所有人（包括自己）
  `MasterClient` | number | 主机客户端

#### constant Region :number

  节点地区

  ##### Properties:

  Name | Type | Description
  --- | --- | ---
  `NorthChina` | number | 华北节点
  `EastChina` | number | 华东节点
  `NorthAmerica` | number | 美国节点

### Methods

#### debug(log)

  调试输出

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `log` | String |

#### error(log)

  错误输出

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `log` | String |

#### setAdapters(newAdapters)

  设置适配器

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---

  `newAdapters`

  Object

  ###### Properties

  Name | Type | Description
  --- | --- | ---
  `WebSocketAdapter` | function | WebSocket 适配器，Cocos Creator 打包 android 平台时需要传入 CA 证书

#### warn(log)

  警告输出

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `log` | String |