wsend server implementation in PHP