#ruby - 13 July 2019
« Back 1 day Forward 1 day »
[06:47:55] baweaver: Going to do a quick test drawing over on twitch.tv/baweaver to test the setup before tomorrow's marathon. Starting in a minute.
[12:13:49] danst_: I'm using websockets right now, but on ruby side it stops working after a while and reconnects
[13:00:48] leitz: Except, of course, that the guy who wrote Node now seems to prefer to write in Go. :)
[13:09:35] danst: i'm using socket.io on node.js side and connect to it with this https://github.com/shokai/ruby-socket.io-client-simple/blob/master/lib/socket.io-client-simple/client.rb
[13:09:50] danst: looks like it wraps over another gem which may fail? trying to figure it out now...
[13:12:03] danst: if you bother helping... it sends websocket messages fine for 10 seconds, then stops, then ruby client reconnects with #<IOError: stream closed in another thread>
[13:51:13] havenwood: danst: It sounds like one side is timing out after 10 seconds. You could probably just fix that issue, if you wanted to.
[13:53:16] havenwood: danst: https://github.com/shokai/ruby-socket.io-client-simple/blob/master/lib/socket.io-client-simple/client.rb#L82
[13:54:44] havenwood: danst: then it's divided by 1000 here: https://github.com/shokai/ruby-socket.io-client-simple/blob/master/lib/socket.io-client-simple/client.rb#L35
[13:57:30] leitz: Morning havenwood! 80 days to go, and I've already met most of this morning's stretch goals. Pushing past into new territory now. :)
[13:58:35] leitz: Well, I did cheat a little. Having done some of this in Go, I stole my own form and converted it from a Go web template to an Erb file. :)
[14:02:00] leitz: In a couple things I've read, having produced 2-3 working apps is better than knowing the "Head First" depth of 2-3 languages. Career wise, anyway.
[14:36:21] leitz: al2o3-cr, I'm an idiot. Standard root cause. :) In this case I added a lot of generator method calls to a builder setup routine, forgetting that I actually hadn't written those generators yet. I'm about at my limit for the day; coffee has worn off and i've been going for about 7 hours.
[14:38:06] al2o3-cr: leitz: you know what's better than coffee. BEER, then everything will become so much clearer :P
[14:39:00] leitz: al2o3-cr, sadly, I'm in America. It's a 90 minute drive to the only place I know that sells actual German beer, and my car is acting up. :(
[14:48:54] al2o3-cr: i had belgium beer once can't remember the name went home started washing the pots lol :p
[14:49:31] leitz: Belgians seem to put more stuff in their beer. Haven't tried it, so I don't know if it makes me ill or not.
[14:50:26] leitz: Pumpkin spice beer and fish tacos are amoung the deepest and darkest sins. Eternal damnation, and all that.
[15:10:30] danst: havenwood: lmao I just commented out whole block if @websocket.open? and Time.now.to_i - @last_pong_at > @ping_timeout/1000
[19:03:41] ytti: (golf version, had to tinker around quite a bit, and i'm proud of what i was able to do)