function broadcast($msg, $except = null)
{
$this->say(">>" . $msg);
foreach ($this->users as $user) {
if ($user->socket == $except) {
continue;
}
/* exclude from broadcast */
$msg = $this->wrap($msg);
socket_write($user->socket, $msg, strlen($msg));
}
}