stock generate and dispatch message to browser