[Reviewer: Matt] Allocate buffer for websockets message

Mike coded this fix.  I've reviewed.