Good catch. TypeScript doesn't complain if I neglect to return the createInfo...and it does complain if I try to return both Promise.reject and the (raw) createInfo. Ummm, yes we have a problem :-)

https://github.com/uProxy/socks-rtc/issues/45