socks: fix deprecations
web: some compatibility fixes
web: add some proper examples