Skip to content

Conversation

@christophrus
Copy link

Because I was wondering if it isn’t a waste of resources to open a socket every time someone hits the site, e.g. when the login buttons are implemented into the header and they don't even intend to login, I decided to modify your example a bit to let it only open a socket when someone actually hits the login button, and also close the socket after the login is done.

@funador
Copy link
Owner

funador commented Jul 16, 2019

Thanks Christopher! Going to leave this open in case other folks are looking to solve the same problem they can grab your branch. Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants