io: fix handling of EOF / error conditions in websock GSource