Spaces:
Running
Running
File size: 497 Bytes
b39afbe |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
/**
* Copyright (c) 2023 MERCENARIES.AI PTE. LTD.
* All rights reserved.
*/
import FileObjectSocket from './FileObjectSocket';
import { type Socket } from 'rete';
class AudioSocket extends FileObjectSocket {
override compatibleWith(socket: Socket, noReverse: boolean): boolean {
const cs: Partial<FileObjectSocket> = this;
if (cs.type) {
return ['string', 'file', 'audio'].includes(cs.type);
}
return socket instanceof AudioSocket;
}
}
export default AudioSocket;
|