public final class StringServer extends Object
ServerSocket
.Modifier and Type | Method and Description |
---|---|
static StringServer |
create(rx.Observable<String> source,
int port)
Factory method.
|
void |
start()
Starts the server.
|
void |
stop()
Stops the server by closing the ServerSocket.
|
String |
toString() |
public static StringServer create(rx.Observable<String> source, int port)
source
- source to publish on server socketport
- to assign the server socket topublic void start()
public void stop()
Copyright © 2020. All rights reserved.