kotlin-stdlib / org.w3c.dom / WebSocket / close close JS 1.1 fun close ( code : Short = definedExternally , reason : String = definedExternally ) (source)