Polling a Websocket

I tried an exec(polling.exec(ws(…))) and got a type mismatch. Is websocket polling not supported or am I just doing it wrong?