in src/main/java/com/microsoft/azure/proton/transport/ws/impl/WebSocketImpl.java [416:426]
public int capacity() {
if (isWebSocketEnabled) {
if (tailClosed) {
return Transport.END_OF_STREAM;
} else {
return inputBuffer.remaining();
}
} else {
return underlyingInput.capacity();
}
}