update WSServer sendMessage API.

if parameter is empty, do not send message.