public interface SocketIOEmitter
Modifier and Type | Method and Description |
---|---|
SocketIOEmitter |
emit(java.lang.String eventName,
JSONArray arguments)
Emits an event to the socket identified by the string name.
|
SocketIOEmitter |
emit(java.lang.String eventName,
java.lang.Object... arguments)
Emits an event to the socket identified by the string name.
|
SocketIOEmitter |
to(java.lang.String... room)
Sets a modifier for a subsequent event emission that the event will
only be broadcast to sockets that have joined the given room.
|
SocketIOEmitter emit(java.lang.String eventName, java.lang.Object... arguments) throws java.io.IOException
eventName
- name of the eventarguments
- optional argumentsjava.io.IOException
- errorSocketIOEmitter emit(java.lang.String eventName, JSONArray arguments) throws java.io.IOException
eventName
- name of the eventarguments
- optional argumentsjava.io.IOException
- errorSocketIOEmitter to(java.lang.String... room)
room
- name of the room"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"