a["message1","message2"]
| Modifier and Type | Method and Description |
|---|---|
| public String[] | |
| public String[] | Returns: an array of messages, ornull if nonethe SockJS message frame content)Decode the given SockJS message frame. |
| public String |
| decode | back to summary |
|---|---|
| public String[] decode(String content) throws IOException Decode the given SockJS message frame.
| |
| decodeInputStream | back to summary |
|---|---|
| public String[] decodeInputStream(InputStream content) throws IOException Decode the given SockJS message frame.
| |
| encode | back to summary |
|---|---|
| public String encode(String... messages) Encode the given messages as a SockJS message frame. Aside from applying standard JSON quoting to each message, there are some additional JSON Unicode escaping rules. See the "JSON Unicode Encoding" section of SockJS protocol (i.e. the protocol test suite). | |