Skip to content

Commit

Permalink
transports websocket
Browse files Browse the repository at this point in the history
  • Loading branch information
simon300000 committed Mar 9, 2024
1 parent 1369489 commit c90406a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if (!ws.includes(localStorage.ws)) {
}

// export const socket = io(process.env.NODE_ENV === 'development' ? 'http://localhost:8001' : localStorage.ws)
export const socket = io(localStorage.ws)
export const socket = io(localStorage.ws, { transports: ['websocket'] })

socket.on('connect', () => {
socket.emit('hash', COMMIT_HASH)
Expand Down

0 comments on commit c90406a

Please sign in to comment.