Refactor - enable SSL on websockets