getCode

abstract fun getCode(): Int

获取 WebSocket 关闭状态码。

Return

状态码,例如 1000 表示正常关闭。