# README
Echo example demonstrates that:
- server can handle requests from many clients simultaneously in auto scale way
- client can use multiplexed connection that provides independent streams
- subscrip/publish patten can be used in client and server
To start an echo server:
go run server/echoserver.go
To start an echo client that sends echo request and gets echo response in multiplexed streams:
go run client/echoclient.go
To start an echo client that subscrips "SubWhoElseEvent" event and continuously query the server by
"WhoElse" message:
go run client/echoclient.go -cmd whoelse
# Functions
NewServer creates a new server instance.
# Structs
Reply is the message replied by server, with Num+1 and a signature of "yours echo.v1.0".
Request is the message sent by client.
Server is echo server.
SubWhoElseEvent is used for clients to subscribe who else event which reports new incoming connection to the server.
WhoElse reports all client addresses the server has so far.