Comments (6)
No description provided.
The disconnect event simply does not work the way you are asking for. That event will fire any time the user navigates to a new page or refreshes the current page. That's how socket.io connections work in the browser. A given connection belongs to a particular page and when a new page is loaded, the prior connection is disconnected and then a new connection is created. There is nothing you can do to change that - that's part of the browser architecture. So, the socket.io disconnect event is simply not the same thing as when your user logs out and can never be the same.
Instead, you need to have your own function that does a logout which the user can trigger by some action in the page. This can be either a socket.io message, an ajax call from your page or by navigating to the logout page. That's how a user can logout and it has nothing to do with the disconnect event.
Similarly, a connect event just means that a user (who may or may not already be logged in) has connected. The login state will be stored in either a cookie or in a server-side session (that is indexed by a cookie).
from ak-meet.
No description provided.
for me I don't no AJAX req so if do this I would rather clear the UID and re-authenticate to /home endpoint, here the /logout endpoint is not working because socket.io is blocking calling of multiple events, so easiest way is to onclick="location.href='/view'"; roomId="";
from ak-meet.
No description provided.
inside room.ejs
<div class="main__controls__block" onclick="location.href=('/view');"">
<div class="main__controls__button" onclick="location.href=('/view');">
<a href="/view"><span class="leave_meeting" onclick="location.href=('/view');">Leave Meeting</span></a>
</div>
</div>
server.js
app.get('/view',(req,res) => { res.render('view'); roomId=""; userId="";})
from ak-meet.
No description provided.
should i create a PR now?
from ak-meet.
No description provided.
should i create a PR now?
Yes you can create a PR now
from ak-meet.
No description provided.
should i create a PR now?
Yes you can create a PR now
#11 sir please check now.
from ak-meet.
Related Issues (20)
- Meeting screen design upgradation HOT 2
- Copy URL button copies whole thing like this: localhost:3000/{url}. The localhost part of url is to be omitted HOT 2
- The Short meet url is not unique. After 24th iteration I found the same URL while testing mouse control feature. Fix it
- Participants window shows 2 participants like: AK, AK's screen even after turning of Screen Share. Fix it.
- Mute Icon inside Participants Modal shows muted when user is unmuted. It must Toggle HOT 1
- File sharing feature in meet HOT 2
- Pinning User Video makes background audio play multiple times hence causing echo.
- Show Live Uptime of User
- Sharing Screen 2nd time generates error
- Add Join Meeting by ID feature
- On closing user join request modal, the background freezes
- Before joining by ID server should check if ID exists or not. If in join by id uses do not enter meet id then meeting starts with id=null.
- Mic Audio not recording HOT 1
- Host of Meeting should be displayed inside the modal
- Add a default error page for the app where the server will redirect returning error code & error type HOT 1
- Add Cron Job for the server to reset all requests at the end of day and start fresh (Restart Server)
- Handle Multiple Meetings / Start Meeting button should create new meeting keeping all other meetings intact
- On Joining meeting with different email Participants modal shows same users. Problem with emitting user id of 2nd user
- Scheduling Meet Should generate a ID
- Webcam Should Turn off when Video is turned off
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ak-meet.