http_complete: manage websockets appropriately.

(There might be a cleaner way to handle this)