when payload is able to mask, get the mask-key.
@Taluu's code was gave idea on me.

This code is line 50 of
https://github.com/Taluu/elephant.io/blob/refacto-3.0/src/Client.php.