server: expose tls socket methods

fix #97
1.8.11