wrapping websockets now includes their 'on' method