Let’s imagine we’re creating a web front end for a telnet/socket based
How should you implement this in rails so that when the user logs in to
the rails page, a socket connection is opened to the background service
from the web server and it will stay alive and available through
something like <%= @session[‘socksession’].readline %> while the user’s
session is active?
Don’t put too much effort in socket handling stuff since I’m not
using sockets, I just think it is easier to get my question through
general socket connections as example.
I tried something like @session[‘sockconn’] =
trying to use @session[‘sockconn’].readline after that just gives
“uninitialized constant Socket”
I hope you understand what I’m trying to ask here.
I’m not sure if there’s any point in using rails in such app in the
first place since I’m not using any database stuff, what do you think?