Package | Description |
---|---|
io.github.flowersinthesand.portal |
Modifier and Type | Method and Description |
---|---|
Socket |
Socket.close()
Closes the session.
|
<T> Socket |
Socket.off(String event,
Action<T> action)
Removes a given added event handler for a given event.
|
<T> Socket |
Socket.on(String event,
Action<T> action)
Adds a given event handler for a given event.
|
Socket |
Socket.send(String event)
Sends a given event without data.
|
Socket |
Socket.send(String event,
Object data)
Sends a given event with data.
|
<T> Socket |
Socket.send(String event,
Object data,
Action<T> reply)
Sends a given event with data registering callback.
|
Modifier and Type | Method and Description |
---|---|
Server |
Server.all(Action<Socket> action)
Executes the given action retrieving all of the socket in this server or
all of the server if it's in a clustered environment .
|
Server |
DefaultServer.all(Action<Socket> action) |
Server |
ClusteredServer.all(Action<Socket> action) |
Server |
Server.byId(String id,
Action<Socket> action)
Executes the given action retrieving the socket of the given id in this
server or all of the server if it's in a clustered environment.
|
Server |
DefaultServer.byId(String id,
Action<Socket> action) |
Server |
ClusteredServer.byId(String id,
Action<Socket> action) |
Server |
Server.byTag(String[] names,
Action<Socket> action)
Executes the given action retrieving the socket tagged with all of the
given names in this server or all of the server if it's in a clustered
environment.
|
Server |
DefaultServer.byTag(String[] names,
Action<Socket> action) |
Server |
ClusteredServer.byTag(String[] names,
Action<Socket> action) |
Server |
Server.byTag(String name,
Action<Socket> action)
Executes the given action retrieving the socket tagged with the given
name in this server or all of the server if it's in a clustered
environment.
|
Server |
DefaultServer.byTag(String name,
Action<Socket> action) |
Server |
Server.socketAction(Action<Socket> action)
Registers an action to be called when the socket has been opened in this
server regardless of clustering.
|
Server |
DefaultServer.socketAction(Action<Socket> action) |
Copyright 2012-2014, Donghwan Kim