working socket endpoints after a lot of heartache