Skip to content

Commit

Permalink
chore: update socket
Browse files Browse the repository at this point in the history
  • Loading branch information
ynwd committed Nov 17, 2024
1 parent 5bf2c22 commit 4d651c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/hook/socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const useWebSocket = (url: string, room: string, user: string) => {
function ping(data: any) {
const i = setInterval(() => {
if (
countRef.current > 0
countRef.current > 1
) {
setIsConnected(true);
return clearInterval(i);
Expand Down

0 comments on commit 4d651c2

Please sign in to comment.