Package com.illumon.iris.web.server
Class WebSocketServer
java.lang.Object
com.illumon.iris.web.server.WebSocketServer
Enables opening a websocket port and forwarding messages in a similar way to how
existing iris Commands work. Port can be optionally set, and other files can also
be hosted if requested.
Any hosted files will be under /static, the websocket will be at /socket.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classWebSocketServer.GenericRpcWebsocket<S extends org.gwtproject.rpc.api.Server<S,C>, C extends org.gwtproject.rpc.api.Client<C, S>> Simple adaptor to let us control both jetty and the socket impl itself, while still delegating the decoding to super.static interfacesimple abstraction of a given client, letting calling code send Message-likestatic interfaceMarker to let us specify that we are building a websocket to jetty, but use various subclasses and implement them differently. -
Method Summary
Modifier and TypeMethodDescriptionstatic WebSocketServer.Builderbuilder()intvoidjoin()voidstop()
-
Method Details
-
builder
-
getServerPort
public int getServerPort() -
join
- Throws:
InterruptedException
-
stop
- Throws:
Exception
-