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