public abstract class SocketIoNamespace
extends io.socket.engineio.server.Emitter
Modifier and Type | Field and Description |
---|---|
protected SocketIoAdapter |
mAdapter |
protected String |
mName |
protected SocketIoServer |
mServer |
Modifier and Type | Method and Description |
---|---|
abstract void |
broadcast(String[] rooms,
String event,
Object[] args)
Broadcast a message to all clients in this namespace that
have joined specified rooms.
|
void |
broadcast(String room,
String event,
Object... args)
Broadcast a message to all clients in this namespace that
have joined specified room.
|
SocketIoAdapter |
getAdapter()
Get the adapter for this namespace.
|
String |
getName()
Get the name of this namespace.
|
SocketIoServer |
getServer()
Get the server associated with this namespace.
|
protected final SocketIoServer mServer
protected final String mName
protected final SocketIoAdapter mAdapter
public String getName()
public SocketIoServer getServer()
public SocketIoAdapter getAdapter()
public final void broadcast(String room, String event, Object... args) throws IllegalArgumentException
room
- Room to send message to or null.event
- Name of event to raise on remote client.args
- Arguments to send. Supported types are: JSONObject, JSONArray, nullIllegalArgumentException
public abstract void broadcast(String[] rooms, String event, Object[] args) throws IllegalArgumentException
rooms
- Rooms to send message to.event
- Name of event to raise on remote client.args
- Array of arguments to send. Supported types are: JSONObject, JSONArray, nullIllegalArgumentException
- If event is null or argument is not of supported type.Copyright © 2022. All rights reserved.