mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 10:33:30 +01:00
Start voice receive rewrite
This commit is contained in:
16
src/client/voice/receiver/Receiver.js
Normal file
16
src/client/voice/receiver/Receiver.js
Normal file
@@ -0,0 +1,16 @@
|
||||
const EventEmitter = require('events');
|
||||
|
||||
class VoiceReceiver extends EventEmitter {
|
||||
constructor(connection) {
|
||||
super();
|
||||
this.connection = connection;
|
||||
this.packets = new PacketHandler(this);
|
||||
this.connection.sockets.udp.socket.on('message', buffer => this.packets.push(buffer));
|
||||
}
|
||||
|
||||
createStream(user, pcm=false) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = VoiceReceiver;
|
||||
Reference in New Issue
Block a user