Ok so as long as cowboy's websockets guarantees an Erlang process receives complete frame (and I believe it does) and new XMPP clients using the specification correctly current implementation will work.