public class SocketIOServer extends Object
| Modifier and Type | Method and Description |
|---|---|
ServerConfiguration |
getConfiguration()
Returns server configuration settings.
|
SocketIOListener |
getListener()
Socket.IO events listener.
|
PipelineModifier |
getPipelineModifier()
Returns pipeline modifier
|
ServerBootstrapFactory |
getServerBootstrapFactory()
Returns ServerBootstrap factory.
|
boolean |
isStarted()
Returns if server is in started state or not.
|
boolean |
isStopped()
Returns if server is in stopped state or not.
|
static SocketIOServer |
newInstance()
Creates instance of Socket.IO server with default settings.
|
static SocketIOServer |
newInstance(int port)
Creates instance of Socket.IO server with the given port.
|
static SocketIOServer |
newInstance(int port,
SSLContext sslContext)
Creates instance of Socket.IO server with the given secure port.
|
static SocketIOServer |
newInstance(ServerConfiguration config)
Creates instance of Socket.IO server with the given configuration.
|
void |
restart()
Restarts Socket.IO server.
|
void |
setConfiguration(ServerConfiguration configuration)
Sets server configuration settings.
|
void |
setListener(SocketIOListener listener)
Sets Socket.IO events listener.
|
void |
setPipelineModifier(PipelineModifier pipelineModifier)
Sets pipeline modifier.
|
void |
setServerBootstrapFactory(ServerBootstrapFactory serverBootstrapFactory)
Sets ServerBootstrap factory.
|
void |
start()
Starts Socket.IO server with current configuration settings.
|
void |
stop()
Stops Socket.IO server.
|
public static SocketIOServer newInstance()
public static SocketIOServer newInstance(int port)
public static SocketIOServer newInstance(int port, SSLContext sslContext)
public static SocketIOServer newInstance(ServerConfiguration config)
public void start()
IllegalStateException - if server already startedpublic void stop()
IllegalStateException - if server already stoppedpublic void restart()
public boolean isStarted()
public boolean isStopped()
public SocketIOListener getListener()
public void setListener(SocketIOListener listener)
public PipelineModifier getPipelineModifier()
public void setPipelineModifier(PipelineModifier pipelineModifier)
public ServerConfiguration getConfiguration()
public void setConfiguration(ServerConfiguration configuration)
public ServerBootstrapFactory getServerBootstrapFactory()
public void setServerBootstrapFactory(ServerBootstrapFactory serverBootstrapFactory)
Copyright © 2012–2016. All rights reserved.