Handle `onread` before `onopen`.