librevox
librevox copied to clipboard
CommandSocket#command
When i call CommandSocket#command :show, :calls it content is empty
but when i try
CommandSocket#command :show, :tasks it has content
so, the problem was in Response#content= who do @content = content.match(/:/) ? headers_2_hash(content) : content this ok, but when the content, for example include. ....sip:1000@....
but in CommandSocket is a bug.
Thank you. I need to revamp the CommandSocket
tests. As soon as this is done I'll merge this in.
CommandSocket is evil and not EM aware (unless you monkeypatch TCPSocket). Same can be achieved using Listener::Inbound.
CommandSocket
still makes sense, in particular because it's not EM, it makes it simpler to use for e.g. one off scripts etc. Might rip it out in a separate gem, though.