Package de.fiveminds.client.lib
Class SocketIoManager
- java.lang.Object
-
- de.fiveminds.client.lib.SocketIoManager
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class SocketIoManager extends java.lang.Object implements java.lang.AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description SocketIoManager(java.net.URI engineUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()SubscriptioncreateSocketIoSubscription(Identity identity, java.lang.String eventName, io.socket.emitter.Emitter.Listener callback, boolean subscribeOnce)voiddisconnectSocket(Identity identity)io.socket.client.SocketgetSocketForIdentity(@NonNull Identity identity)voidremoveSocketIoSubscription(Identity identity, Subscription subscription)
-
-
-
Method Detail
-
disconnectSocket
public void disconnectSocket(Identity identity)
-
createSocketIoSubscription
public Subscription createSocketIoSubscription(Identity identity, java.lang.String eventName, io.socket.emitter.Emitter.Listener callback, boolean subscribeOnce) throws UnauthorizedError, java.net.URISyntaxException
- Throws:
UnauthorizedErrorjava.net.URISyntaxException
-
removeSocketIoSubscription
public void removeSocketIoSubscription(Identity identity, Subscription subscription)
-
getSocketForIdentity
public io.socket.client.Socket getSocketForIdentity(@NonNull @NonNull Identity identity)
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable
-
-