sending and receiving data through websockets (Pusher)