Undefined WebSocket.bufferedAmount
Opened this issue · 0 comments
marcospassos commented
The WebSocket.bufferedAmount
should not be undefined but zero:
const server = new Server('ws://localhost:8080');
const ws = new WebSocket('ws://localhost:8080');
server.on('connection', socket => {
// Outputs undefined
console.log(socket.bufferedAmount);
});