Package com.adobe.granite.socketio
Interface SocketIOService
-
@ProviderType public interface SocketIOService
The socket.io service is the entry point to interact with socket.io and is registered as OSGi service.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<java.lang.String,SocketIONamespace>
getNamespaces()
Returns a map of all used namespaces.void
register(SocketIOListener listener)
Registers a socket.io listener.void
unregister(SocketIOListener listener)
Unregisters a socket.io listener
-
-
-
Method Detail
-
getNamespaces
@Nonnull java.util.Map<java.lang.String,SocketIONamespace> getNamespaces()
Returns a map of all used namespaces.- Returns:
- namespaces map.
-
register
void register(@Nonnull SocketIOListener listener)
Registers a socket.io listener.- Parameters:
listener
- listener to register
-
unregister
void unregister(@Nonnull SocketIOListener listener)
Unregisters a socket.io listener- Parameters:
listener
- listener to unregister.
-
-