Skip to content

Commit 3dabc50

Browse files
committed
Change transports for Twitter sign in
1 parent 29f3f01 commit 3dabc50

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

renderer/pages/join.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,9 @@ class Join extends Component {
250250
this.socket = io(config.apiUrl, {
251251
secure: true,
252252
rejectUnauthorized: false,
253+
transports: ['websocket', 'polling'],
253254
})
254-
this.socket.once('connect', () => this.setState({ socketReady: true }))
255+
this.socket.on('connect', () => this.setState({ socketReady: true }))
255256
this.socket.on('error', err => {
256257
console.log('Socket for Twitter auth disconnected:', err)
257258
Raven.captureException(err)

0 commit comments

Comments
 (0)