public interface WebSocketDecoder
Current implementations need to at least support decoding the envelope, and are assumed to support all operations. In the future, we could break the API in two (1. envelope, 2. payload) if we ever get to a point of needing that.
| Modifier and Type | Method and Description |
|---|---|
WebSocketDecodeContext |
decodeMessage(InputStream in)
Decodes the common wrapper fields of an incoming web socket message.
|
<T extends com.google.protobuf.MessageLite.Builder> |
decodeMessageData(WebSocketDecodeContext ctx,
io.protostuff.Schema<T> dataSchema)
Decodes any data that may be wrapped by the incoming web socket message
|
WebSocketDecodeContext decodeMessage(InputStream in) throws WebSocketException
WebSocketException<T extends com.google.protobuf.MessageLite.Builder> T decodeMessageData(WebSocketDecodeContext ctx, io.protostuff.Schema<T> dataSchema) throws WebSocketException
WebSocketExceptionCopyright © 2017 Space Applications Services. All rights reserved.