All,
I have tried EM in the past. Trying it again, but lost on something so simple....
I have a module with this
def post_init
puts "Established connection to server"
end
when I
EM.run {
EM.connect <server-ip>, <server-port>, Module
}
The post_init is run even when a connection is not established. Also, if I supply a block it is run. It as if my client as made a connection when I know it has not. What is wrong here? I'm using jruby and the java version of this, so maybe I need to ask the author of that. But, I just wanted to clarify that this is not the correct behavior, right?
Using the Java version and JRuby to right a hardware simulator that is a client using Monkeybars and EM and StateMachine. Any thoughts, if this is doable or suggestions?
Thanks,
GregD