close

abstract fun close(): Boolean

关闭


abstract fun close(code: Int, reason: String): Boolean

关闭

Parameters

code

关闭状态码;状态码详细说明可参见:Section 7.4 of RFC 6455

reason

原因