@ProviderType 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.
|
@Nonnull SocketIOEmitter emit(@Nonnull String eventName, @Nonnull Object... arguments) throws IOException
eventName - name of the eventarguments - optional argumentsIOException - error@Nonnull SocketIOEmitter emit(@Nonnull String eventName, @Nonnull JSONArray arguments) throws IOException
eventName - name of the eventarguments - optional argumentsIOException - error@Nonnull SocketIOEmitter to(@Nonnull String... room)
room - name of the roomCopyright © 2010 - 2020 Adobe. All Rights Reserved