3 ms·
This. When thinking about stateless protocols, I like to use the metaphor of a server-side session variable which can hold state for you to instantly access. B
by evantahler 15y ago
This.
When thinking about stateless protocols, I like to use the metaphor of a server-side session variable which can hold state for you to instantly access. Because the connection never closes, you can always access "my_last_command" or an array of previously set variables.
I make use of these notions in the actionHero api framework (as it is a framework for both HTTP and Raw TCP clients). I put down an example of a TCP session which may be of some use.
http://actionherojs.com/ http://actionherojs.com/