Remove txsockjs import, as it is no longer needed according to the sockjs-twisted documentation
Convert the neater format to the twisted format endpoint string for listening
Convert the neater format to the twisted format endpoint string for connecting to servers