MultiHandler in Javascript Extension?
Posted: 10 May 2021, 07:27
Back in SFS 1x , all client requests/commands came through the "handleRequest" handler and from there I parsed the command string and routed the request to appropriate module in other parts of the server code.
With SFS2X I'm using Javascript extensions I was hoping to utilize a similar flow where all client messages goto a single handler and from there I can route them to other parts of the code. I know Java extensions accomplish this through creating a MultiHandler class. But what would be the best way to accomplish this functionality with SFS2X Javascript extensions?|
With SFS2X I'm using Javascript extensions I was hoping to utilize a similar flow where all client messages goto a single handler and from there I can route them to other parts of the code. I know Java extensions accomplish this through creating a MultiHandler class. But what would be the best way to accomplish this functionality with SFS2X Javascript extensions?|