public class WebSocketPublisher extends Object implements org.nustaq.kontraktor.remoting.base.ActorPublisher
| Constructor and Description |
|---|
WebSocketPublisher() |
WebSocketPublisher(org.nustaq.kontraktor.Actor facade,
String host,
String path,
int port) |
WebSocketPublisher(BldFourK cfgFourK,
org.nustaq.kontraktor.Actor facade,
String hostName,
String urlPath,
int port) |
| Modifier and Type | Method and Description |
|---|---|
BldFourK |
buildWebsocket() |
WebSocketPublisher |
cfg(BldFourK cfg) |
WebSocketPublisher |
coding(org.nustaq.kontraktor.remoting.encoding.Coding coding) |
WebSocketPublisher |
facade(org.nustaq.kontraktor.Actor facade) |
WebSocketPublisher |
hostName(String hostName) |
WebSocketPublisher |
port(int port) |
org.nustaq.kontraktor.IPromise<org.nustaq.kontraktor.remoting.base.ActorServer> |
publish(Consumer<org.nustaq.kontraktor.Actor> disconnectCallback) |
WebSocketPublisher |
sendSid(boolean sendSid)
send sessionid like sid:234-234-234 after a client connects.
|
WebSocketPublisher |
sendStringMessages(boolean sendStringMessages)
node.js does not support full file api, so binary messages cannot be de'jsoned.
|
WebSocketPublisher |
serType(org.nustaq.kontraktor.remoting.encoding.SerializerType tp) |
WebSocketPublisher |
urlPath(String urlPath) |
public WebSocketPublisher()
public WebSocketPublisher(org.nustaq.kontraktor.Actor facade,
String host,
String path,
int port)
public BldFourK buildWebsocket()
public org.nustaq.kontraktor.IPromise<org.nustaq.kontraktor.remoting.base.ActorServer> publish(Consumer<org.nustaq.kontraktor.Actor> disconnectCallback)
publish in interface org.nustaq.kontraktor.remoting.base.ActorPublisherpublic WebSocketPublisher hostName(String hostName)
public WebSocketPublisher urlPath(String urlPath)
public WebSocketPublisher port(int port)
public WebSocketPublisher coding(org.nustaq.kontraktor.remoting.encoding.Coding coding)
public WebSocketPublisher serType(org.nustaq.kontraktor.remoting.encoding.SerializerType tp)
public WebSocketPublisher facade(org.nustaq.kontraktor.Actor facade)
facade in interface org.nustaq.kontraktor.remoting.base.ActorPublisherpublic WebSocketPublisher sendStringMessages(boolean sendStringMessages)
sendStringMessages - public WebSocketPublisher cfg(BldFourK cfg)
public WebSocketPublisher sendSid(boolean sendSid)
Copyright © 2018. All rights reserved.