Helle everybody, i built an accounting app that takes in an xls file filled with stock operations and does the accounting(generating balance,journals…) on the server. the fact is i have a meteor method that is called from the client and that does the accounting.Now within this method there’s a lot of loops and filters,maps and array operations going on, such that when the file is too operations loaded the works takes time.As the method is running on the server and takes a bit more than 1 min to complete(since it’s synchronous) the websocket gets disconnected for timeoutmbut i still can see the results on the server log showing that even tough it took some time to complete it still completed awesomely.
How can i increase sockjs timeout value so that at least im sure my tasks frun flawlessly?
I thought of moving the method on the client but i dont think it is a good solution.Even after optimizing the method just when the timeout occurs i get the result on the server just seconds away.
Please guys help me…Sorry for the english i hope i made myself understandable