Call wsread as a function

It's meant to be wsread().  Spitting wsread to the client will give you a function.