Skip to content

Sending Binary Data with WebSocket

Jeanfrancois Arcand edited this page Oct 30, 2013 · 6 revisions

By default, The Atmosphere Framework will send text message back to the client/browser. If you want to send bytes, just add client side the following header:

X-Atmosphere-Binary: true

You can also programmatically enable it by using

AtmosphereResource.forceBinaryWrite(true);

You can also enable it by using web.xml

        <init-param>
            <param-name>org.atmosphere.websocket.binaryWrite</param-name>
            <param-value>true</param-value>
        </init-param>

Step by Step Tutorials

Concepts & Architecture

15 Minutes Tutorial

Advanced Topics

API

Known WebServer Issues

References

External Documentations

githalytics.com alpha

Clone this wiki locally