turn websockets into a service