Add user-id-fn to websocket constructor

And some docs. Didn't see any tests that I could modify.