All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jvmMain.love.forte.simbot.kook.stdlib.BotConfiguration.jvm.kt Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2023. ForteScarlet.
 *
 * This file is part of simbot-component-kook.
 *
 * simbot-component-kook is free software: you can redistribute it and/or modify it under the terms of
 * the GNU Lesser General Public License as published by the Free Software Foundation,
 * either version 3 of the License, or (at your option) any later version.
 *
 * simbot-component-kook is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License along with simbot-component-kook,
 * If not, see .
 */

package love.forte.simbot.kook.stdlib

import io.ktor.websocket.*
import love.forte.simbot.kook.stdlib.internal.readToTextWithDeflated

/**
 * [BotConfiguration] 中 [BotConfiguration.isCompress] 的默认值,
 * 默认开启,通过 [Frame.Binary.readToTextWithDeflated] 的平台实现支持。
 *
 * @see Frame.Binary.readToTextWithDeflated
 */
public actual const val DEFAULT_COMPRESS: Boolean = true




© 2015 - 2024 Weber Informatics LLC | Privacy Policy