Skip to content

Latest commit

 

History

History
 
 

customerroute

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Nano cluster example

About this example

How to run the example?

cd examples/customerroute
go build

# run master server
./customerroute master
./customerroute chat --listen "127.0.0.1:34580"
./customerroute chat --listen "127.0.0.1:34581"
./customerroute gate --listen "127.0.0.1:34570" --gate-address "127.0.0.1:34590"

open browser and visit url for 4 times

http://127.0.0.1:12345/web/ 
http://127.0.0.1:12345/web/ 
http://127.0.0.1:12345/web/ 
http://127.0.0.1:12345/web/     

input content and send, the same ChatRoomService node will sync the message each other