private void deliverRawText0(String text)
    {
        boolean errorDelivering = false;
        try {
            socket.getWsSession().getRemote().sendString(text);
        } catch (Exception e) {
            Log.debug("Error delivering raw text:\n" + text, e);
            errorDelivering = true;
        }

        // Attempt to close the connection if delivering text fails.
        if (errorDelivering) {
            close();
        }
    }
Following the conventions of the BOSH implementation, this class extends {@link VirtualConnection}
and delegates the expected XMPP connection behaviors to the corresponding {@link WebSocketClientConnectionHandler}.
xmppserver/src/main/java/org/jivesoftware/openfire/websocket/WebSocketConnection.java