@Override
    protected void saslSuccessful() {
        // When using websockets, send the stream header in a separate websocket frame!
        connection.deliverRawText(withoutDeclaration(getStreamHeader()));
        sendStreamFeatures();
    }
After SASL authentication was successful we should open a new stream and offer
new stream features such as resource binding and session establishment. Notice that
resource binding and session establishment should only be offered to clients (i.e. not
to servers or external components)
xmppserver/src/main/java/org/jivesoftware/openfire/websocket/WebSocketClientStanzaHandler.java