Hello!
Tcpx now provide a better practice routing style for developer. In the past, routers are like:
srv.AddHandler(1, login)
srv.AddHandler(3, auth)
This kind of routing is based on messageID. It seems easy but require developers to manage all messageID themselves, it's really a tiring job.
But now ,tcpx provides better routing style, it will gradually replace the old messageID routing.(But will not abandon usage of messageID and still keep compatible of old stf). It works like:
Hello! Tcpx now provide a better practice routing style for developer. In the past, routers are like:
This kind of routing is based on messageID. It seems easy but require developers to manage all messageID themselves, it's really a tiring job.
But now ,tcpx provides better routing style, it will gradually replace the old messageID routing.(But will not abandon usage of messageID and still keep compatible of old stf). It works like:
Also, when server side wants to reply:
More usages of url-pattern routing, you may refer to