程序包 cool.scx.ext.ws
类 WSEventBus
java.lang.Object
cool.scx.ext.ws.WSEventBus
此 EventBus 仅支持 后台 和 前台进行通讯 并不会进行 jvm 内的通讯 如有需求 请使用
Scx.eventBus()- 版本:
- 1.15.0
- 作者:
- scx567888
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明<T> WSEventBuswsConsumer(String address, Consumer<WSMessage<T>> handler) wsConsumer.wsPublish.wsPublish(WSMessage<?> wsMessage, Collection<io.vertx.core.http.ServerWebSocket> sockets) wsPublish.wsPublish.wsPublish(String address, Object body, Collection<io.vertx.core.http.ServerWebSocket> sockets) wsPublish.
-
构造器详细资料
-
WSEventBus
public WSEventBus()
-
-
方法详细资料
-
wsPublish
public WSEventBus wsPublish(String address, Object body, Collection<io.vertx.core.http.ServerWebSocket> sockets) wsPublish.
- 参数:
address- aStringobjectbody- aObjectobjectsockets- aCollectionobject- 返回:
- a
WSEventBusobject
-
wsPublish
public WSEventBus wsPublish(WSMessage<?> wsMessage, Collection<io.vertx.core.http.ServerWebSocket> sockets) wsPublish.
- 参数:
wsMessage- aWSMessageobjectsockets- aCollectionobject- 返回:
- a
WSEventBusobject
-
wsPublish
public WSEventBus wsPublish(String address, Object body, io.vertx.core.http.ServerWebSocket... sockets) wsPublish.
- 参数:
address- aStringobjectbody- aObjectobjectsockets- aCollectionobject- 返回:
- a
WSEventBusobject
-
wsPublish
wsPublish.
- 参数:
wsMessage- aWSMessageobjectsockets- aCollectionobject- 返回:
- a
WSEventBusobject
-
wsConsumer
wsConsumer.
- 类型参数:
T- a T class- 参数:
address- aStringobjecthandler- aConsumerobject- 返回:
- a
WSEventBusobject
-