Fully abstracted websockets into users.js