All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.projectodd.sockjs.XhrStreamingReceiver Maven / Gradle / Ivy

There is a newer version: 1.0.2-RELEASE
Show newest version
/**
 * Copyright (C) 2014 Red Hat, Inc, and individual contributors.
 * Copyright (C) 2011-2012 VMware, Inc.
 */

package org.projectodd.sockjs;

public class XhrStreamingReceiver extends ResponseReceiver {

    public XhrStreamingReceiver(SockJsRequest req, SockJsResponse res, SockJsServer.Options options) {
        super(req, res, options);
        protocol = "xhr-streaming";
    }

    @Override
    public boolean doSendFrame(String payload) {
        return super.doSendFrame(payload + "\n");
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy