With this module, Nginx can connect to Resin through hmux protocol directly.
You also can use tcpcopy to test this module.
nginx_hmux_module:
https://github.com/wangbin579/nginx-hmux-module or http://code.google.com/p/nginx-hmux-module/
tcpcopy:
https://github.com/wangbin579/tcpcopy or http://code.google.com/p/tcpcopy/