implemented websockets, removed sockets (what was i thinking?)