send([ "operation" => "PostMessage", "message" => $message, "username" => $username, "location" => $location, "channelType" => "Emergency", "channelName" => is_null($URL_0) ? "" : "$URL_0" ]); $wsi->close(); return ["sent" => true]; //TODO: tout poster dans la BDD } }