Problem in Websocket set up

The authClient.getIdentity() method returns a DelegationIdentity (which extends a SignIdentity) if the login process has been completed successfully.
So, you just need to cast the type:

_identity = authClient.getIdentity() as DelegationIdentity; // or: as SignIdentity

We do something similar here:

Does this help?