public interface SockJsMessageCodec
a["message1","message2"]
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
decode(java.lang.String content)
Decode the given SockJS message frame.
|
java.lang.String[] |
decodeInputStream(java.io.InputStream content)
Decode the given SockJS message frame.
|
java.lang.String |
encode(java.lang.String... messages)
Encode the given messages as a SockJS message frame.
|
java.lang.String encode(java.lang.String... messages)
messages
- the messages to encodenull
)@Nullable java.lang.String[] decode(java.lang.String content) throws java.io.IOException
content
- the SockJS message framenull
if nonejava.io.IOException
- if the content could not be parsed@Nullable java.lang.String[] decodeInputStream(java.io.InputStream content) throws java.io.IOException
content
- the SockJS message framenull
if nonejava.io.IOException
- if the content could not be parsed