public class WebSocketMessageFormat extends Object implements org.fanout.pubcontrol.Format
| Modifier and Type | Field and Description |
|---|---|
byte[] |
binaryContent |
String |
content |
| Constructor and Description |
|---|
WebSocketMessageFormat(byte[] binaryContent)
Initialize with binary content.
|
WebSocketMessageFormat(String content)
Initialize with non-binary string content.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
export()
Exports the message based on whether the message content is binary or not.
|
String |
name()
The name used when publishing this format.
|
public String content
public byte[] binaryContent
public WebSocketMessageFormat(String content)
public WebSocketMessageFormat(byte[] binaryContent)
public String name()
name in interface org.fanout.pubcontrol.Formatpublic Object export()
export in interface org.fanout.pubcontrol.FormatCopyright © 2015. All rights reserved.