put lastsent/recv in ws