- Traditional CSS
- Simple approach, known API
- we would have to deal with namespace conflicts
- leverages browser caching, storing the entire app style in the first load and reducing following reloads
- Style-based implementations
loop do | |
begin | |
sleep 1 | |
rescue Exception => e | |
puts "I'm STRONGER. Give up!" | |
end | |
end | |
# Run and try CTRL+C |
class Funky | |
def good_method | |
"I'm good" | |
end | |
def method_missing(*args) | |
"I'm bad" | |
end | |
end | |
> Funky.new.good_method |
host='vera-us-oem-relay31.mios.com'
path='/relay/relay/relay/device/45025220/session/000000043F62005B183D2DABD0DD8B175A866F/port_3480/data_request?DeviceNum=3&Variable=PinCodes&id=variableget&serviceId=urn%3Amicasaverde-com%3AserviceId%3ADoorLock1'
HTTParty.get("https://#{host}#{path}")
@dougwilson thanks for the quick response. Yeah, I've read most of the session lib source and couldn't see a reason for it not work. | |
I found a way, by manually calling session on the express websockets upgrade request handler: | |
```js | |
import Express from 'express' | |
import ExpressSession from 'express-session' | |
import proxy from 'http-proxy-middleware' | |
const session = ExpressSession({ ... }) |
hash = { | |
1 => { c: 2 }, | |
2 => { c: 4 }, | |
} | |
class Works | |
def do(a, c:) | |
puts "a: #{a.inspect}; c: #{c.inspect}" | |
end | |
end |