jvmMain.love.forte.simbot.kook.stdlib.BotConfiguration.jvm.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simbot-component-kook-stdlib-jvm Show documentation
Show all versions of simbot-component-kook-stdlib-jvm Show documentation
Simple Robot框架下针对开黑啦(KOOK)平台的组件实现
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