feat(useWebSocket): 修改socket默认重连次数

feature
钟良源 1 month ago
parent 2657452977
commit 697f13d6c3

@ -20,7 +20,7 @@ interface WebSocketHook {
const useWebSocket = (options: WebSocketOptions = {}): WebSocketHook => {
const {
reconnectInterval = 3000,
maxReconnectAttempts = 0,
maxReconnectAttempts = 99,
onOpen,
onClose,
onError,

Loading…
Cancel
Save