public interface SocketIOEmitter
Modifier and Type | Method and Description |
---|---|
SocketIOEmitter |
emit(String eventName,
JSONArray arguments)
Emits an event to the socket identified by the string name.
|
SocketIOEmitter |
emit(String eventName,
Object... arguments)
Emits an event to the socket identified by the string name.
|
SocketIOEmitter |
to(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(String eventName, Object... arguments) throws IOException
eventName
- name of the eventarguments
- optional argumentsIOException
SocketIOEmitter emit(String eventName, JSONArray arguments) throws IOException
eventName
- name of the eventarguments
- optional argumentsIOException
SocketIOEmitter to(String... room)
room
- name of the room"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"