Fix argument order for ws stream pass

head and error handling was broken before this commit.