weak typing here which may provoke some errors ?

modify AbstractPayload::$mask is integer;

https://github.com/Wisembly/elephant.io/pull/49#discussion_r15751815