Skip to content

Commit

Permalink
Disable long-polling
Browse files Browse the repository at this point in the history
  • Loading branch information
12joan committed May 6, 2024
1 parent 72c39d8 commit 2211e57
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/src/onlinePlayAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ const handleRemoteGameID = (remoteGameID: string | null) => {
query: { gameID: remoteGameID },
timeout: 2000,
forceNew: true,
// Long-polling does not work with Docker Swarm replicas
transports: ['websocket'],
})

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

0 comments on commit 2211e57

Please sign in to comment.