Socket.D v2.5.12

Socket.D - Kotlin 开发

</> markdown

开发,主要是对 “会话” 与 “监听器” 接口的应用组合!另外,客户端使用单连接即可:

val session = SocketD.createClient("sd:ws://127.0.0.1:8602/?u=a&p=2")
        .open();

目前 Kotlin 的传输适配有(与 Java 包完全兼容):

适配基础传输协议支持端安全备注
org.noear:socketd-transport-java-kcpsd:kcpc,s/nio,孵化中...
org.noear:socketd-transport-java-tcpsd:tcpc,ssslbio(86kb)
org.noear:socketd-transport-java-udpsd:udpc,s/bio(86kb)
org.noear:socketd-transport-java-websocketsd:ws, sd:wssc,ssslnio(217kb)
org.noear:socketd-transport-nettysd:tcpc,ssslnio(2.5mb)
org.noear:socketd-transport-smartsocketsd:tcpc,ssslaio(254kb),孵化中...

项目中引入任何 “一个” 或 “多个” 传输适配包即可,例如:

implementation("org.noear:socketd-transport-netty:2.5.12")