Basically, I don't want the websocket to automatically attempt 
reconnections after it has been closed by the server.

I've tried
new WebSocketBridge({maxReconnectAttempts: 1})

and 
const socket = new WebSocketBridge({maxReconnectAttempts: 1})

socket.connect('/ws/', undefined, {maxReconnectAttempts: 1})

but to no avail. 

Am I doing something wrong? Any help would be appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e4471747-3133-49b7-b98d-cf7ecb64c1db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to