Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-dev] Refactored WebSocket API

All,

due to changes in the draft-06 (and soon to arrive draft-7) websocket
specification, I've had to significantly refactor the WebSocket API.

   http://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk/jetty-websocket/src/main/java/org/eclipse/jetty/websocket/WebSocket.java

The intent is to have nested interfaces for OnTextMessage,
OnBinaryMessage, OnControl and OnFrame to contain callbacks for
different types of message.  The first three are called back with
complete aggregated messages, while the OnFrame is called with all
frames, which may be message fragments.

The Outbound subinterface has also been renamed Connection, as it now
provides more info about the inbound side (eg protocol, and maximum
size of aggregated messages).

This is just in SVN for now and it is not set in stone.   So feed back
and ideas are very welcome.


cheers


Back to the top