How to use unpipe - 1 common examples

To help you get started, we’ve selected a few unpipe examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github discordjs / discord.js / src / Voice / VoiceConnection.js View on Github external
stopPlaying() {
		this.playing = false;
		this.playingIntent = null;
		if (this.instream) {
			//not all streams implement these...
			//and even file stream don't seem to implement them properly...
			unpipe(this.instream);
			if (this.instream.end) {
				this.instream.end();
			}
			if (this.instream.destroy) {
				this.instream.destroy();
			}
			this.instream = null;
		}
		if (this.streamProc) {
			this.streamProc.stdin.pause();
			this.streamProc.kill("SIGKILL");
			this.streamProc = null;
		}
	}

unpipe

Unpipe a stream from all destinations

MIT
Latest version published 9 years ago

Package Health Score

65 / 100
Full package analysis

Popular unpipe functions