Skip to content

Conversation

@NoelDeMartin
Copy link

In some situations, it may be desirable to stop tracking session status. This PR implements such a feature.

However, it's important to note that the Flow linter is currently throwing an error, but I'm not sure why. The error in particular is Cannot call this.off because property off is missing in SolidAuthClient. I'm not familiar with Flow, but I don't understand why is this failing. The off method exists in the parent class EventEmitter, so it should be ok. The test I implemented is also passing, so the implementation should be correct.

@RubenVerborgh
Copy link
Contributor

Use removeListener instead?

@RubenVerborgh
Copy link
Contributor

Would rename to stopTrackSession for consistency.

@NoelDeMartin
Copy link
Author

@RubenVerborgh Ok it seems to work with removeListener. Not sure why off wasn't working, since the trackSession method is implemented using on. Anyways, it's working now, thank you 👍.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.05%) to 83.761% when pulling 68e7beb on NoelDeMartin:patch-1 into b673efa on solid:master.

@jaxoncreed jaxoncreed merged commit 897fc5e into nodeSolidServer:master Oct 29, 2019
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.

4 participants