Stream interface for web workers