- Update dependencies
tsbuffer
- Add option
caUrl
to adapt Cocos Creator and Android native.
- Update dependencies
- Update deps (Fixed cocos supporting bug)
- Update deps
- Update to
tsrpc-base-client@2.1.10
- Issue that
ws.onClose
is not called whenwsClient.disconnect()
manually at CocosCreator Android platform. - Issue that the name of Api cannot be the same with it of Msg when using
WsClient
in JSON mode.
- Fixed issue that
logLevel
not works
- Ignore incoming data after heartbeat timeout
- Publish error
- Protect
WebSocketProxy.onClose
executed duplicately.
- Bug:
WebSocketProxy.onClose
is not executed when heartbeat timeout when WIFI is broken
- New client flow:
preRecvMsgFlow
andpostRecvMsgFlow
- Add listener for
ws.onerror
- Update deps
- Builtin heartbeat support
- New options
logApi
andlogMsg
- New options
logLevel
- Compatibility with Cocos Creator on Android, when using
disconnect
without parameters. - Compatibility with UniApp Native (Missing
navigator.userAgent
)
postDisconnectFlow
not executed whendisconnect()
manually
- Removed unused logs
- Support using
keyof
- Support type alias and
keyof
inPick
andOmit
- Support
Pick<Intersection>
andOmit<Intersection>
- Support
interface
extends Mapped Type, likePick
Omit
- Support
Pick<XXX, keyof XXX>
- Support
Pick<XXX, TypeReference>
- Support
Pick<UnionType>
andPick<IntersectionType>
, the same toOmit
- Support reference enum value as literal type,like:
export enum Types { Type1, Type2 } export interface Obj { type: Types.Type1, value: string }
SchemaType
switched to class
cjs
tojs
to fixreact-scripts@5
WsServer
now support client usebuffer
as transfering format when server setjson: true
- log
[SendMsgErr]
- Do not package dependencies all-in-one any more, use NPM reference instead.
- Update dependencies
- JSON 模式支持增强类型的传输,如
ArrayBuffer
、Date
、ObjectId
- WebSocket 支持 JSON 格式传输
- 增加对
mongodb/ObjectId
的编解码支持
HttpClient
andWsClient
no longer have default type param
- Missing log when encode request error
- Update dependencies, many deps rename
index.cjs
toindex.js
to fit webpack.
index.cjs
renamed toindex.js
to supportumi
HttpProxy
检查返回码是否为 200- 更新
tsrpc-base-client
修复一些问题
callApi
返回错误非业务错误时,通过logger.error
打印日志而不是logger.log
。- handler of
client.listenMsg
changed to(msg, msgName, client)=>void