Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.stop(); #2

Open
defvol opened this issue Dec 9, 2012 · 5 comments
Open

.stop(); #2

defvol opened this issue Dec 9, 2012 · 5 comments

Comments

@defvol
Copy link
Owner

defvol commented Dec 9, 2012

A stop function, which will kill the http connection.

@karen2k
Copy link

karen2k commented Aug 9, 2013

I am not so good in Node, but smth like this:

javascript
stop: =>
request.removeAllListeners 'error'
request.removeAllListeners 'data'
request.removeAllListeners 'end'
request.abort()


And request var must be declared in the beginning of the class.

@defvol
Copy link
Owner Author

defvol commented Aug 16, 2013

seems like the way to go,

I'll try it out, thanks!

@Dayjo
Copy link

Dayjo commented Mar 9, 2014

👍 Yes please!

Have tried this out without much luck, it definitely appears to close the connection but when restarting paparazzo I get Error: listen EADDRINUSE

@defvol
Copy link
Owner Author

defvol commented Mar 9, 2014

you'll find some work in progress in #21

I fast-checked and it seems good, nevertheless I will wait 'til we have some kind of testing

@Dayjo
Copy link

Dayjo commented Mar 10, 2014

need to learn cofffee script

I might have known @ == this! and figured that out. I may get a chance to test this soon 👍

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

No branches or pull requests

3 participants